diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2011-11-20 13:33:38 +0100 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-11-20 13:42:15 +0100 |
commit | 52621cb6ed0e0e14358bb317bda7cd5fbd5c2a27 (patch) | |
tree | 5b4bc4c08c9f50e97779fcf527b1a8c7780a9e88 /fs/btrfs/inode.c | |
parent | Btrfs: fix to search one more bitmap for cluster setup (diff) | |
download | linux-52621cb6ed0e0e14358bb317bda7cd5fbd5c2a27.tar.xz linux-52621cb6ed0e0e14358bb317bda7cd5fbd5c2a27.zip |
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>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions