Btrfs: Fix space checking during fs resize
authorDaniel J Blueman <[email protected]>
Fri, 27 Apr 2012 16:41:46 +0000 (12:41 -0400)
committerChris Mason <[email protected]>
Fri, 27 Apr 2012 17:55:14 +0000 (13:55 -0400)
commit7654b72417e10e294563496e25211200f9b8b6d3
tree5ca24ea9bb735133c0e09a789d3eb50d9a8b69b4
parent1f699d38b6556c393ac80f1c23c2053502a51631
Btrfs: Fix space checking during fs resize

Fix out-of-space checking, addressing a warning and potential resource
leak when resizing the filesystem down while allocating blocks.

Signed-off-by: Daniel J Blueman <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/relocation.c