projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dc4f00
)
hfsplus: avoid useless work in hfsplus_sync_fs
author
Christoph Hellwig
<hch@tuxera.com>
Tue, 23 Nov 2010 13:38:02 +0000
(14:38 +0100)
committer
Christoph Hellwig
<hch@lst.de>
Tue, 23 Nov 2010 13:38:02 +0000
(14:38 +0100)
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>
fs/hfsplus/super.c
patch
|
blob
|
history
diff --git
a/fs/hfsplus/super.c
b/fs/hfsplus/super.c
index df6bea02b2b471b531de95a5da693131f735190f..56e6cf80c5e07d810a86d7a59785d42cc9371cd3 100644
(file)
--- a/
fs/hfsplus/super.c
+++ b/
fs/hfsplus/super.c
@@
-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;