BUG_ON() Conversion in fs/configfs/
Subsystems (2)
PATCH 2/12 BUG_ON() Conversion in fs/configfs/
hi,
this changes if() BUG(); constructs to BUG_ON() which is cleaner, contains unlikely() and can better optimized away.
Signed-off-by Eric Sesterhenn <[email protected]>
fs/configfs/inode.c renamed from fs/configfs/inode.c.orig +1 -2
@@ -105,8 +105,7 @@ const unsigned char * configfs_get_name( {struct attribute * attr; -if (!sd || !sd->s_element) -BUG (); +BUG_ON (!sd || !sd->s_element);/* These always have a dentry, so use that */ if (sd->s_type & (CONFIGFS_DIR |CONFIGFS_ITEM_LINK ))
fs/configfs/symlink.c renamed from fs/configfs/symlink.c.orig +1 -2
@@ -162,8 +162,7 @@ int configfs_unlink(struct inode *dir, sif (!(sd->s_type &CONFIGFS_ITEM_LINK )) goto out; -if (dentry->d_parent == configfs_sb->s_root) -BUG (); +BUG_ON (dentry->d_parent == configfs_sb->s_root); sl = sd->s_element;
_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/kernel-janitors