From: David Howells Date: Mon, 25 Sep 2023 12:02:58 +0000 (+0100) Subject: iov_iter: Remove last_offset from iov_iter as it was for ITER_PIPE X-Git-Tag: v6.7-rc1~207^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=581beb4fe37d17571c87058d13d298d5458e25e9;p=thirdparty%2Fkernel%2Flinux.git iov_iter: Remove last_offset from iov_iter as it was for ITER_PIPE Now that ITER_PIPE has been removed, iov_iter::last_offset is no longer used, so remove it. Signed-off-by: David Howells Link: https://lore.kernel.org/r/20230925120309.1731676-2-dhowells@redhat.com cc: Alexander Viro cc: Jens Axboe cc: Christoph Hellwig cc: Christian Brauner cc: Matthew Wilcox cc: Linus Torvalds cc: David Laight cc: linux-block@vger.kernel.org cc: linux-fsdevel@vger.kernel.org cc: linux-mm@kvack.org Signed-off-by: Christian Brauner --- diff --git a/include/linux/uio.h b/include/linux/uio.h index 42bce38a8e870..2000e42a65863 100644 --- a/include/linux/uio.h +++ b/include/linux/uio.h @@ -44,10 +44,7 @@ struct iov_iter { bool nofault; bool data_source; bool user_backed; - union { - size_t iov_offset; - int last_offset; - }; + size_t iov_offset; /* * Hack alert: overlay ubuf_iovec with iovec + count, so * that the members resolve correctly regardless of the type