]> err.no Git - linux-2.6/commit
BUG_ON conversion for fs/reiserfs
authorEric Sesterhenn <snakebyte@gmx.de>
Tue, 3 Oct 2006 21:36:38 +0000 (23:36 +0200)
committerAdrian Bunk <bunk@stusta.de>
Tue, 3 Oct 2006 21:36:38 +0000 (23:36 +0200)
commit14a61442c2203d2a49f2f954bfa9259c0ddac1aa
treec146effc3dbaa41dd6fdd01e6f3f8fcdd63ad705
parent8d8f3cbe777e014123bfa63f2cebd6eb29032225
BUG_ON conversion for fs/reiserfs

This patch converts several if () BUG(); construct to BUG_ON();
which occupies less space, uses unlikely and is safer when
BUG() is disabled. S_ISREG() has no side effects, so the
conversion is safe.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
fs/reiserfs/file.c
fs/reiserfs/item_ops.c
fs/reiserfs/journal.c
fs/reiserfs/namei.c
fs/reiserfs/stree.c