The patch titled is_power_of_2: ufs/super.c has been added to the -mm tree. Its filename is is_power_of_2-ufs-superc.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: is_power_of_2: ufs/super.c From: vignesh babu <vignesh.babu@xxxxxxxxx> Replace (n & (n-1)) with is_power_of_2 Signed-off-by: vignesh babu <vignesh.babu@xxxxxxxxx> Acked-by: Evgeniy Dushistov <dushistov@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ufs/super.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -puN fs/ufs/super.c~is_power_of_2-ufs-superc fs/ufs/super.c --- a/fs/ufs/super.c~is_power_of_2-ufs-superc +++ a/fs/ufs/super.c @@ -87,6 +87,7 @@ #include <linux/smp_lock.h> #include <linux/buffer_head.h> #include <linux/vfs.h> +#include <linux/log2.h> #include "swab.h" #include "util.h" @@ -854,7 +855,7 @@ magic_found: uspi->s_fmask = fs32_to_cpu(sb, usb1->fs_fmask); uspi->s_fshift = fs32_to_cpu(sb, usb1->fs_fshift); - if (uspi->s_fsize & (uspi->s_fsize - 1)) { + if (!is_power_of_2(uspi->s_fsize)) { printk(KERN_ERR "ufs_read_super: fragment size %u is not a power of 2\n", uspi->s_fsize); goto failed; @@ -869,7 +870,7 @@ magic_found: uspi->s_fsize); goto failed; } - if (uspi->s_bsize & (uspi->s_bsize - 1)) { + if (!is_power_of_2(uspi->s_bsize)) { printk(KERN_ERR "ufs_read_super: block size %u is not a power of 2\n", uspi->s_bsize); goto failed; _ Patches currently in -mm which might be from vignesh.babu@xxxxxxxxx are git-ubi.patch use-is_power_of_2-in-cxgb3-cxgb3_mainc.patch use-is_power_of_2-in-myri10ge-myri10gec.patch is_power_of_2-ext3-superc.patch is_power_of_2-jbd.patch is_power_of_2-kernel-kfifoc.patch is_power_of_2-ufs-superc.patch is_power_of_2-ext4-superc.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html