fs: add generic read/write iterator helpers
authorJens Axboe <axboe@kernel.dk>
Thu, 4 Apr 2024 12:58:30 +0000 (06:58 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 14 Oct 2024 15:05:28 +0000 (09:05 -0600)
commit002acb91cc1fa3e227eefef0b329e14b0cc44f7a
treea683a72cea0a935c48a977172556f58976286605
parentf09d6a0ceb12d17afb3fd57be531897a7dbc9830
fs: add generic read/write iterator helpers

We already do this internally for vfs_readv() and vfs_writev(), which
need to check what method to use. Add generic helpers for this so that
drivers can do this themselves, if they haven't converted to using the
read/write iterator file_operations hooks just yet.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/read_write.c
include/linux/fs.h