]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Use is_power_of_2()
authorVignesh Babu <vignesh.babu@wipro.com>
Wed, 18 Jul 2007 13:11:02 +0000 (09:11 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 18 Jul 2007 13:11:02 +0000 (09:11 -0400)
commit720e900ab13ba0e9c870e0ebcc1a481e4f45237b
treee4e73798e07758eb029625fc04c82385ec6749ee
parent1070c54ce293ffd3b4ffe62b958650d5d5ea2482
ext4: Use is_power_of_2()

Replace (n & (n-1)) in the context of power of 2 checks with
is_power_of_2()

Signed-off-by: Vignesh Babu <vignesh.babu@wipro.com>
Cc: <linux-ext4@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c