aboutsummaryrefslogtreecommitdiffstats
path: root/fs/logfs/super.c
diff options
context:
space:
mode:
authorJoern Engel <joern@logfs.org>2010-03-04 15:36:19 -0500
committerJoern Engel <joern@logfs.org>2010-03-04 15:36:19 -0500
commitc6d3830140f1d56b07d8ab56a6e14ca3c492a39a (patch)
tree8dd9923b4217f6f7dc2735356d112fdcfa277852 /fs/logfs/super.c
parent9421502b4fc894cc477be8fc49776830e37ca157 (diff)
[LogFS] Only write journal if dirty
This prevents unnecessary journal writes. More importantly it prevents an oops due to a journal write on failed mount.
Diffstat (limited to 'fs/logfs/super.c')
-rw-r--r--fs/logfs/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/super.c b/fs/logfs/super.c
index 94d80f7ee7c..1d081b7ede5 100644
--- a/fs/logfs/super.c
+++ b/fs/logfs/super.c
@@ -490,7 +490,7 @@ static void logfs_kill_sb(struct super_block *sb)
490 log_super("LogFS: Start unmounting\n"); 490 log_super("LogFS: Start unmounting\n");
491 /* Alias entries slow down mount, so evict as many as possible */ 491 /* Alias entries slow down mount, so evict as many as possible */
492 sync_filesystem(sb); 492 sync_filesystem(sb);
493 logfs_write_anchor(super->s_master_inode); 493 logfs_write_anchor(sb);
494 494
495 /* 495 /*
496 * From this point on alias entries are simply dropped - and any 496 * From this point on alias entries are simply dropped - and any