[Devel] [PATCH rh7 28/30] ext4: Attach write_iter and read_iter

Kirill Tkhai ktkhai at virtuozzo.com
Wed May 20 19:06:14 MSK 2020


Now all ext4 direct_IO code is prepared to work with iov_iter,
so we allow to use it for submitting bvec from kernel.

See aio_write_iter() and aio_read_iter() for the details,
where from it comes.

Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
---
 fs/ext4/file.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 32b17c61b52b..83f8aaaeda9d 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -583,6 +583,8 @@ const struct file_operations_extend  ext4_file_operations = {
 		.splice_read	= generic_file_splice_read,
 		.splice_write	= generic_file_splice_write,
 		.fallocate	= ext4_fallocate,
+		.read_iter	= generic_file_read_iter,
+		.write_iter	= ext4_file_write_iter,
 	},
 	.mmap_supported_flags = MAP_SYNC,
 };




More information about the Devel mailing list