diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-11-12 13:15:05 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2008-11-12 13:15:05 +1100 |
commit | a1aedd8279901df4f8ae1fed2a61147b01e9204c (patch) | |
tree | fcb73d47243a048c346739362f7d421216d4f6e9 /fs/xfs/xfs_bit.h | |
parent | f43ed8dbe17337d34968ef1401c2470303be51db (diff) | |
parent | aad4b5330f5b2b7d57571da33e7a1af8fd0f44f9 (diff) |
Merge commit 'xfs/master'
Diffstat (limited to 'fs/xfs/xfs_bit.h')
-rw-r--r-- | fs/xfs/xfs_bit.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/xfs/xfs_bit.h b/fs/xfs/xfs_bit.h index 8e0e463dae2d..bca7b243c319 100644 --- a/fs/xfs/xfs_bit.h +++ b/fs/xfs/xfs_bit.h @@ -61,8 +61,7 @@ static inline int xfs_highbit64(__uint64_t v) /* Get low bit set out of 32-bit argument, -1 if none set */ static inline int xfs_lowbit32(__uint32_t v) { - unsigned long t = v; - return (v) ? find_first_bit(&t, 32) : -1; + return ffs(v) - 1; } /* Get low bit set out of 64-bit argument, -1 if none set */ |