nilfs2: simplify handling of active state of segments fix
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sun, 29 Mar 2009 15:50:19 +0000 (00:50 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 13 Apr 2009 00:53:51 +0000 (09:53 +0900)
commit3efb55b496952e0d29a9ec66d0ceaab175c4e8ca
treed53771031086e9801343a1a990af7d1eb80f1827
parente7a7402c0d392dcadc74cae8922f8fae4667605a
nilfs2: simplify handling of active state of segments fix

This fixes a bug of ("nilfs2: simplify handling of active state of
segments") patch.  The patch did not take account that a base index is
increased in nilfs_sufile_get_suinfo() function if requested entries
go across block boundary on sufile.

Due to this bug, the active flag sometimes appears on wrong segments
and has induced malfunction of garbage collection.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/sufile.c