[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.
This commit is contained in:
Joern Engel
2010-03-04 21:36:19 +01:00
parent 9421502b4f
commit c6d3830140
6 changed files with 19 additions and 13 deletions

View File

@@ -490,7 +490,7 @@ static void logfs_kill_sb(struct super_block *sb)
log_super("LogFS: Start unmounting\n");
/* Alias entries slow down mount, so evict as many as possible */
sync_filesystem(sb);
logfs_write_anchor(super->s_master_inode);
logfs_write_anchor(sb);
/*
* From this point on alias entries are simply dropped - and any