aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorJulia Lawall <[email protected]>2008-04-28 09:16:09 +0000
committerLinus Torvalds <[email protected]>2008-04-28 15:58:44 +0000
commit269b26191650be46ce6c91dec24cf20f59650529 (patch)
tree9ff8863d02d709dcb75deef345b3a6eb8c0d30c0 /fs/jbd/commit.c
parentext3: check ext3_journal_get_write_access() errors (diff)
downloadkernel-269b26191650be46ce6c91dec24cf20f59650529.tar.gz
kernel-269b26191650be46ce6c91dec24cf20f59650529.zip
fs/ext3: use BUG_ON
if (...) BUG(); should be replaced with BUG_ON(...) when the test has no side-effects to allow a definition of BUG_ON that drops the code completely. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @ disable unlikely @ expression E,f; @@ ( if (<... f(...) ...>) { BUG(); } | - if (unlikely(E)) { BUG(); } + BUG_ON(E); ) @@ expression E,f; @@ ( if (<... f(...) ...>) { BUG(); } | - if (E) { BUG(); } + BUG_ON(E); ) // </smpl> Signed-off-by: Julia Lawall <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions