diff --git a/fs/jfs/jfs_dmap.c b/fs/jfs/jfs_dmap.c index 974ecf5e0d95..346f2617b744 100644 --- a/fs/jfs/jfs_dmap.c +++ b/fs/jfs/jfs_dmap.c @@ -3017,6 +3017,9 @@ static int dbFindBits(u32 word, int l2nb) nb = 1 << l2nb; assert(nb <= DBWORD); + if (nb == DBWORD) + return (!!word) << BUDMIN; + /* complement the word so we can use a mask (i.e. 0s represent * free bits) and compute the mask. */