[Devel] [RH7 PATCH 1/3] compile fix for ext4-add-mfsync-support

Dmitry Monakhov dmonakhov at openvz.org
Tue Jul 21 05:34:49 PDT 2015


ext4_flush_unwritten_io was removed in rh7-3.10.0-229.7.2

https://jira.sw.ru/browse/PSBM-34909

Signed-off-by: Dmitry Monakhov <dmonakhov at openvz.org>
---
 fs/ext4/fsync.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c
index 99582b8..8235438 100644
--- a/fs/ext4/fsync.c
+++ b/fs/ext4/fsync.c
@@ -209,9 +209,6 @@ int ext4_sync_files(struct file **files, unsigned int *flags, unsigned int nr_fi
 		}
 
 		mutex_lock(&inode->i_mutex);
-		err2 = ext4_flush_unwritten_io(inode);
-		if (!err || err2 == -EIO)
-			err = err2;
 		force_commit  |= ext4_should_journal_data(inode);
 		datawriteback |= ext4_should_writeback_data(inode);
 		tid = datasync ? ei->i_datasync_tid : ei->i_sync_tid;
-- 
1.7.1




More information about the Devel mailing list