]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
libxfs: Optimize the loop for xfs_bitmap_empty
authorJia He <hejianet@gmail.com>
Mon, 15 Feb 2016 01:12:38 +0000 (12:12 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 15 Feb 2016 01:12:38 +0000 (12:12 +1100)
commitc5c9f532f8f577ffd03b83b2412a4c4cda1ccc86
tree9e5c66e964cdd72c32628668cfb4e4ad0d85fe2b
parent7093f6333e13c510f89a5981954bcbf4dbf75860
libxfs: Optimize the loop for xfs_bitmap_empty

Source kernel commit 1d4292bfdc77f4f7c520064be15d0c46bd025fd2

If there is any non zero bit in a long bitmap, it can jump out of the
loop and finish the function as soon as possible.

Signed-off-by: Jia He <hejianet@gmail.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
libxfs/xfs_bit.c