nilfs2: fix wrong accounting and duplicate brelse in nilfs_sufile_set_error
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 5 Apr 2009 06:03:16 +0000 (15:03 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 13 Apr 2009 00:53:51 +0000 (09:53 +0900)
The nilfs_sufile_set_error() function wrongly adjusts the number of
dirty segments instead of the number of clean segments.  In addition,
the function calls brelse() twice for the same buffer head.

This fixes these bugs.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>

No differences found