kernel-hacking-2024-linux-s.../fs/ext3
Julia Lawall 269b261916 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 <julia@diku.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-28 08:58:44 -07:00
..
acl.c ext3: fix wrong gfp type under transaction 2008-03-19 18:53:36 -07:00
acl.h
balloc.c fs/ext3: use BUG_ON 2008-04-28 08:58:44 -07:00
bitmap.c
dir.c
ext3_jbd.c
file.c
fsync.c ext3: fdatasync should skip metadata writeout when overwriting 2008-04-28 08:58:43 -07:00
hash.c
ialloc.c ext*: spelling fix prefered -> preferred 2008-04-21 22:45:55 +00:00
inode.c ext3: use ext3_get_group_desc() 2008-04-28 08:58:44 -07:00
ioctl.c [PATCH] r/o bind mounts: elevate write count for ioctls() 2008-04-19 00:29:24 -04:00
Makefile
namei.c ext3: check ext3_journal_get_write_access() errors 2008-04-28 08:58:44 -07:00
namei.h
resize.c ext3: add missing ext3_journal_stop() 2008-04-28 08:58:44 -07:00
super.c ext3: use ext3_group_first_block_no() 2008-04-28 08:58:44 -07:00
symlink.c
xattr.c ext3: use ext3_group_first_block_no() 2008-04-28 08:58:44 -07:00
xattr.h make ext3_xattr_list() static 2008-04-28 08:58:44 -07:00
xattr_security.c
xattr_trusted.c
xattr_user.c