1
0
Fork 0

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>
hifive-unleashed-5.1
Christoph Hellwig 2010-11-23 14:38:02 +01:00 committed by Christoph Hellwig
parent 7dc4f00112
commit f02e26f8d9
1 changed files with 3 additions and 0 deletions

View File

@ -160,6 +160,9 @@ int hfsplus_sync_fs(struct super_block *sb, int wait)
int write_backup = 0;
int error, error2;
if (!wait)
return 0;
dprint(DBG_SUPER, "hfsplus_write_super\n");
sb->s_dirt = 0;