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

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


__sync_inode was removed in rh7-3.10.0-229.7.2
It is honest to simply disable mfsync in  nojournal mode since we
so not test nojournal mode at all.

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

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

diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c
index 8235438..4826dc0 100644
--- a/fs/ext4/fsync.c
+++ b/fs/ext4/fsync.c
@@ -220,18 +220,7 @@ int ext4_sync_files(struct file **files, unsigned int *flags, unsigned int nr_fi
 
 	/* Ext4 specific stuff starts here */
 	if (!journal) {
-		for (j = 0; j < i; j++) {
-			/* Implementation is suboptimal because issue barrier for each
-			 * inode */
-			struct address_space * mapping = files[j]->f_mapping;
-			struct inode *inode = mapping->host;
-
-			err2 = __sync_inode(inode, flags[j]);
-			if (!err2 && !hlist_empty(&inode->i_dentry))
-				err2 = ext4_sync_parent(inode);
-			if (!err)
-				err = err2;
-		}
+		 return -ENOTSUPP;
 	} else if (force_commit) {
 		/* data=journal:
 		 *  filemap_fdatawrite won't do anything (the buffers are clean).
-- 
1.7.1




More information about the Devel mailing list