From: Eric Sandeen Date: Thu, 21 Aug 2008 17:46:37 +0000 (+0200) Subject: [S390] fix ext2_find_next_bit X-Git-Tag: v2.6.27-rc5~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=152382af4056aadc0c2ea2e8e8258b277be085bf;p=pandora-kernel.git [S390] fix ext2_find_next_bit ext4 does not work on s390 because ext2_find_next_bit is broken. Fortunately this function is only used by ext4. The function uses ffs which does not work analog to ffz. The result of ffs has an offset of 1 which is not taken into account. To fix this use the low level __ffs_word function directly instead of the ill defined ffs. In addition the patch improves find_next_zero_bit and ext2_find_next_zero_bit by passing the bit offset into __ffz_word instead of adding it after the function call returned. Signed-off-by: Eric Sandeen Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed