aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus/super.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@tuxera.com>2010-11-23 08:38:02 -0500
committerChristoph Hellwig <hch@lst.de>2010-11-23 08:38:02 -0500
commitf02e26f8d90f8cde98314c72c2e890bc281a8346 (patch)
treec24bdb07fe551b7fb77f4ff4aaa0eadc8e7622b6 /fs/hfsplus/super.c
parent7dc4f001123f9ebe3b010a6c26acd18698ad205f (diff)
hfsplus: avoid useless work in hfsplus_sync_fs
There is no reason to write out the metadata inodes or volume headers during a non-blocking sync, as we are almost guaranteed to dirty them again during the inode writeouts. Signed-off-by: Christoph Hellwig <hch@tuxera.com>
Diffstat (limited to 'fs/hfsplus/super.c')
-rw-r--r--fs/hfsplus/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index df6bea02b2b4..56e6cf80c5e0 100644
--- a/fs/hfsplus/super.c
+++ b/fs/hfsplus/super.c
@@ -160,6 +160,9 @@ int hfsplus_sync_fs(struct super_block *sb, int wait)
160 int write_backup = 0; 160 int write_backup = 0;
161 int error, error2; 161 int error, error2;
162 162
163 if (!wait)
164 return 0;
165
163 dprint(DBG_SUPER, "hfsplus_write_super\n"); 166 dprint(DBG_SUPER, "hfsplus_write_super\n");
164 167
165 sb->s_dirt = 0; 168 sb->s_dirt = 0;