diff options
author | Joern Engel <joern@logfs.org> | 2010-03-04 21:36:19 +0100 |
---|---|---|
committer | Joern Engel <joern@logfs.org> | 2010-03-04 21:36:19 +0100 |
commit | c6d3830140f1d56b07d8ab56a6e14ca3c492a39a (patch) | |
tree | 8dd9923b4217f6f7dc2735356d112fdcfa277852 /fs/logfs/readwrite.c | |
parent | 9421502b4fc894cc477be8fc49776830e37ca157 (diff) | |
download | talos-obmc-linux-c6d3830140f1d56b07d8ab56a6e14ca3c492a39a.tar.gz talos-obmc-linux-c6d3830140f1d56b07d8ab56a6e14ca3c492a39a.zip |
[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/readwrite.c')
-rw-r--r-- | fs/logfs/readwrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c index 1dbe6e8cccec..7a23b3e7c0a7 100644 --- a/fs/logfs/readwrite.c +++ b/fs/logfs/readwrite.c @@ -421,7 +421,7 @@ static void inode_write_block(struct logfs_block *block) inode = block->inode; if (inode->i_ino == LOGFS_INO_MASTER) - logfs_write_anchor(inode); + logfs_write_anchor(inode->i_sb); else { ret = __logfs_write_inode(inode, 0); /* see indirect_write_block comment */ |