nilfs2: get rid of BUG_ON use in btree lookup routines
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 10 Oct 2009 13:58:10 +0000 (22:58 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Fri, 20 Nov 2009 01:05:46 +0000 (10:05 +0900)
The current btree lookup routines make a kernel oops when detected
inconsistency in btree blocks.  These routines should instead return a
proper error code because the inconsistency usually comes from
corruption of on-disk metadata.

This fixes the issue by converting BUG_ON calls to proper error
handlings.

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

No differences found