Patchwork [RFC,v2,16/21] ext3: add support for .read_iter and .write_iter

login
register
mail settings
Submitter Dave Kleikamp
Date March 30, 2012, 3:43 p.m.
Message ID <1333122228-13633-17-git-send-email-dave.kleikamp@oracle.com>
Download mbox | patch
Permalink /patch/149673/
State Not Applicable
Headers show

Comments

Dave Kleikamp - March 30, 2012, 3:43 p.m.
From: Zach Brown <zab@zabbo.net>

ext3 uses the generic .read_iter and .write_iter functions.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Cc: Zach Brown <zab@zabbo.net>
Cc: Jan Kara <jack@suse.cz>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: linux-ext4@vger.kernel.org
---
 fs/ext3/file.c |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/fs/ext3/file.c b/fs/ext3/file.c
index 724df69..30447a5 100644
--- a/fs/ext3/file.c
+++ b/fs/ext3/file.c
@@ -58,6 +58,8 @@  const struct file_operations ext3_file_operations = {
 	.write		= do_sync_write,
 	.aio_read	= generic_file_aio_read,
 	.aio_write	= generic_file_aio_write,
+	.read_iter	= generic_file_read_iter,
+	.write_iter	= generic_file_write_iter,
 	.unlocked_ioctl	= ext3_ioctl,
 #ifdef CONFIG_COMPAT
 	.compat_ioctl	= ext3_compat_ioctl,