aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent-tree.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-02-16 05:52:17 -0500
committerChris Mason <clm@fb.com>2015-04-13 10:27:18 -0400
commitf2ab76188ec185dde84e7fe7c533ef2f5d668a32 (patch)
tree220b4e911a81b77792f565b2d6ada98cf7950cbf /fs/btrfs/extent-tree.c
parent94b947b2f3f84f3bba25d34c4e2a229fc2276830 (diff)
btrfs: Fix tail space processing in find_free_dev_extent()
It is another reason for NO_SPACE case. When we found enough free space in loop and saved them to max_hole_start/size before, and tail space contains pending extent, origional innocent max_hole_start/size are reset in retry. As a result, find_free_dev_extent() returns less space than it can, and cause NO_SPACE in user program. Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent-tree.c')
0 files changed, 0 insertions, 0 deletions