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)
commit88072faf9a32c92f37c15065496bb6eb309aebe3
treea99478df82c69a97b7e4644dbbd4b9d5df8f5949
parent3efb55b496952e0d29a9ec66d0ceaab175c4e8ca
nilfs2: fix wrong accounting and duplicate brelse in nilfs_sufile_set_error

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>
fs/nilfs2/sufile.c