linux/fs/affs
Julia Lawall 8d4b69002e fs/affs/file.c: 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>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-29 08:06:02 -07:00
..
affs.h iget: stop AFFS from using iget() and read_inode() 2008-02-07 08:42:27 -08:00
amigaffs.c iget: stop AFFS from using iget() and read_inode() 2008-02-07 08:42:27 -08:00
bitmap.c fs: mark nibblemap const 2007-10-17 08:42:47 -07:00
Changes
dir.c [PATCH] mark struct inode_operations const 1 2007-02-12 09:48:46 -08:00
file.c fs/affs/file.c: use BUG_ON 2008-04-29 08:06:02 -07:00
inode.c iget: stop AFFS from using iget() and read_inode() 2008-02-07 08:42:27 -08:00
Makefile
namei.c iget: stop AFFS from using iget() and read_inode() 2008-02-07 08:42:27 -08:00
super.c affs: handle match_strdup failure 2008-04-29 08:06:01 -07:00
symlink.c [PATCH] mark struct inode_operations const 1 2007-02-12 09:48:46 -08:00