diff options
author | Barry Naujok <bnaujok@sgi.com> | 2008-10-30 07:05:38 +0100 |
---|---|---|
committer | Lachlan McIlroy <lachlan@sgi.com> | 2008-10-30 07:05:38 +0100 |
commit | 847fff5ca881670ca8ec617afeb943950f0c804b (patch) | |
tree | cd03cf7a3422842978332a22de51c91827821841 /fs/xfs/xfs_bit.h | |
parent | [XFS] Make xfs_btree_check_ptr() debug-only code. (diff) | |
download | linux-847fff5ca881670ca8ec617afeb943950f0c804b.tar.xz linux-847fff5ca881670ca8ec617afeb943950f0c804b.zip |
[XFS] Sync up kernel and user-space headers
SGI-PV: 986558
SGI-Modid: xfs-linux-melb:xfs-kern:32231a
Signed-off-by: Barry Naujok <bnaujok@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
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 */ |