linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iov_iter: Remove last_offset member
@ 2023-04-05 10:15 David Howells
  2023-04-05 13:37 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2023-04-05 10:15 UTC (permalink / raw)
  To: Jens Axboe
  Cc: dhowells, Christoph Hellwig, Matthew Wilcox, Alexander Viro,
	Jeff Layton, linux-nfs, linux-fsdevel, linux-mm, netdev,
	linux-kernel

Hi Jens,

Can you add this to the block tree?

David
---
iov_iter: Remove last_offset member

With the removal of ITER_PIPE, the last_offset member of struct iov_iter is
no longer used, so remove it and un-unionise the remaining member.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: Jens Axboe <axboe@kernel.dk>
cc: Matthew Wilcox <willy@infradead.org>
cc: Alexander Viro <viro@zeniv.linux.org.uk>
cc: linux-nfs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
cc: linux-mm@kvack.org
cc: netdev@vger.kernel.org
---
 include/linux/uio.h |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/linux/uio.h b/include/linux/uio.h
index 74598426edb4..2d8a70cb9b26 100644
--- a/include/linux/uio.h
+++ b/include/linux/uio.h
@@ -43,10 +43,7 @@ struct iov_iter {
 	bool nofault;
 	bool data_source;
 	bool user_backed;
-	union {
-		size_t iov_offset;
-		int last_offset;
-	};
+	size_t iov_offset;
 	size_t count;
 	union {
 		const struct iovec *iov;



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] iov_iter: Remove last_offset member
  2023-04-05 10:15 [PATCH] iov_iter: Remove last_offset member David Howells
@ 2023-04-05 13:37 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2023-04-05 13:37 UTC (permalink / raw)
  To: David Howells
  Cc: Christoph Hellwig, Matthew Wilcox, Alexander Viro, Jeff Layton,
	linux-nfs, linux-fsdevel, linux-mm, netdev, linux-kernel


On Wed, 05 Apr 2023 11:15:16 +0100, David Howells wrote:
> Can you add this to the block tree?
> 
> David
> 
> 

Applied, thanks!

[1/1] iov_iter: Remove last_offset member
      commit: 867e1cbba73ea240f9417439479df7eb74b1299c

Best regards,
-- 
Jens Axboe





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-05 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 10:15 [PATCH] iov_iter: Remove last_offset member David Howells
2023-04-05 13:37 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox