Skip to content

Commit f02e26f

Browse files
Christoph HellwigChristoph Hellwig
authored andcommitted
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>
1 parent 7dc4f00 commit f02e26f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎fs/hfsplus/super.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ int hfsplus_sync_fs(struct super_block *sb, int wait)
160160
int write_backup = 0;
161161
int error, error2;
162162

163+
if (!wait)
164+
return 0;
165+
163166
dprint(DBG_SUPER, "hfsplus_write_super\n");
164167

165168
sb->s_dirt = 0;

0 commit comments

Comments
 (0)