]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't do extra bitmap search in one bit case
authorJosef Bacik <jbacik@fb.com>
Fri, 2 Oct 2015 20:12:23 +0000 (16:12 -0400)
committerChris Mason <clm@fb.com>
Thu, 22 Oct 2015 01:55:41 +0000 (18:55 -0700)
commit765fd2f054c92479a34fd5497b7d344dace48267
tree201ced5ececf47ac59e358973b73fd376388e8a1
parent633b705bb9910b82782bb139f08c8c3d150afb6f
Btrfs: don't do extra bitmap search in one bit case

When we make ctl->unit allocations from a bitmap there is no point in searching
for the next 0 in the bitmap.  If we've found a bit we're done and can just exit
the loop.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/free-space-cache.c