提交 f02e26f8 编写于 作者: C Christoph Hellwig 提交者: Christoph Hellwig

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: NChristoph Hellwig <hch@tuxera.com>
上级 7dc4f001
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册