update to rc6, and verified pass fsx/dbench
[ext4-patch-queue.git] / is_power_of_2-ext4-superc.patch
blob5b9eab7eae760d0b91a6850fa484a5a75559214f
1 Subject: is_power_of_2: ext4/super.c
2 From: vignesh babu <vignesh.babu@wipro.com>
4 Replace (n & (n-1)) in the context of power of 2 checks with is_power_of_2()
6 Signed-off-by: vignesh babu <vignesh.babu@wipro.com>
7 Cc: <linux-ext4@vger.kernel.org>
8 Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
9 Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
10 ---
12 fs/ext4/super.c | 3 ++-
13 1 files changed, 2 insertions(+), 1 deletion(-)
15 diff -puN fs/ext4/super.c~is_power_of_2-ext4-superc fs/ext4/super.c
16 --- a/fs/ext4/super.c~is_power_of_2-ext4-superc
17 +++ a/fs/ext4/super.c
18 @@ -36,6 +36,7 @@
19 #include <linux/namei.h>
20 #include <linux/quotaops.h>
21 #include <linux/seq_file.h>
22 +#include <linux/log2.h>
24 #include <asm/uaccess.h>
26 @@ -1662,7 +1663,7 @@ static int ext4_fill_super (struct super
27 sbi->s_inode_size = le16_to_cpu(es->s_inode_size);
28 sbi->s_first_ino = le32_to_cpu(es->s_first_ino);
29 if ((sbi->s_inode_size < EXT4_GOOD_OLD_INODE_SIZE) ||
30 - (sbi->s_inode_size & (sbi->s_inode_size - 1)) ||
31 + (!is_power_of_2(sbi->s_inode_size)) ||
32 (sbi->s_inode_size > blocksize)) {
33 printk (KERN_ERR
34 "EXT4-fs: unsupported inode size: %d\n",
37 Patches currently in -mm which might be from vignesh.babu@wipro.com are
39 git-ubi.patch
40 use-is_power_of_2-in-cxgb3-cxgb3_mainc.patch
41 use-is_power_of_2-in-myri10ge-myri10gec.patch
42 is_power_of_2-ext3-superc.patch
43 is_power_of_2-ext4-superc.patch
44 is_pwoer_of_2-jbd.patch