]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: avoid unnecessary bitmap search for cluster setup
authorLi Zefan <lizf@cn.fujitsu.com>
Sun, 20 Nov 2011 12:33:38 +0000 (07:33 -0500)
committerChris Mason <chris.mason@oracle.com>
Sun, 20 Nov 2011 12:42:15 +0000 (07:42 -0500)
commitf731d5e4914884a934ce2fccf15ec90bf2f3fe16
tree5b4bc4c08c9f50e97779fcf527b1a8c7780a9e88
parentab8b1ff5aa597273a69a344f59410d51159ef16f
Btrfs: avoid unnecessary bitmap search for cluster setup

setup_cluster_no_bitmap() searches all the extents and bitmaps starting
from offset. Therefore if it returns -ENOSPC, all the bitmaps starting
from offset are in the bitmaps list, so it's sufficient to search from
this list in setup_cluser_bitmap().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/free-space-cache.c