]> git.baikalelectronics.ru Git - kernel.git/commit
libxfs: Optimize the loop for xfs_bitmap_empty
authorJia He <hejianet@gmail.com>
Mon, 4 Jan 2016 05:10:19 +0000 (16:10 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 4 Jan 2016 05:10:19 +0000 (16:10 +1100)
commit328e7a0bf4aeb7d5f510e8c7eacda4c55592f2fa
tree0caa65a6a56e13d269503b38c211aafaef6cad0b
parentc84ebc1f8b6e106e45ad13ca51399497157047ee
libxfs: Optimize the loop for xfs_bitmap_empty

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>
fs/xfs/libxfs/xfs_bit.c