Skip to content

Commit

Permalink
hfsplus: avoid useless work in hfsplus_sync_fs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Christoph Hellwig committed Nov 23, 2010
1 parent 7dc4f00 commit f02e26f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/hfsplus/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f02e26f

Please sign in to comment.