From: akpm@linux-foundation.org Subject: + is_power_of_2-ext4-superc.patch added to -mm tree Date: Mon, 25 Jun 2007 12:13:44 -0700 Message-ID: <200706251913.l5PJDiCa008705@imap1.linux-foundation.org> Cc: vignesh.babu@wipro.com, linux-ext4@vger.kernel.org To: mm-commits@vger.kernel.org Return-path: Received: from smtp2.linux-foundation.org ([207.189.120.14]:57447 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754232AbXFYTNv (ORCPT ); Mon, 25 Jun 2007 15:13:51 -0400 Sender: linux-ext4-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org The patch titled is_power_of_2: ext3/super.c has been added to the -mm tree. Its filename is is_power_of_2-ext4-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: ext3/super.c From: vignesh babu Replace (n & (n-1)) in the context of power of 2 checks with is_power_of_2() Signed-off-by: vignesh babu Cc: Signed-off-by: Andrew Morton --- fs/ext4/super.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN fs/ext4/super.c~is_power_of_2-ext4-superc fs/ext4/super.c --- a/fs/ext4/super.c~is_power_of_2-ext4-superc +++ a/fs/ext4/super.c @@ -36,6 +36,7 @@ #include #include #include +#include #include @@ -1662,7 +1663,7 @@ static int ext4_fill_super (struct super sbi->s_inode_size = le16_to_cpu(es->s_inode_size); sbi->s_first_ino = le32_to_cpu(es->s_first_ino); if ((sbi->s_inode_size < EXT4_GOOD_OLD_INODE_SIZE) || - (sbi->s_inode_size & (sbi->s_inode_size - 1)) || + (!is_power_of_2(sbi->s_inode_size)) || (sbi->s_inode_size > blocksize)) { printk (KERN_ERR "EXT4-fs: unsupported inode size: %d\n", _ Patches currently in -mm which might be from vignesh.babu@wipro.com 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-ext4-superc.patch is_pwoer_of_2-jbd.patch