summaryrefslogtreecommitdiff
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorjeff.liu <jeff.liu@oracle.com>2012-10-27 12:06:39 (GMT)
committerJosef Bacik <jbacik@fusionio.com>2012-12-12 22:15:16 (GMT)
commit0253f40ef9a709a1af39ce38b1d998af090f8127 (patch)
tree87803116f56aad5771c94ab78e1c01649b9a4919 /fs/btrfs/ioctl.c
parent9afab8820bb8b55af669b199597d6716e04d1ba8 (diff)
downloadlinux-0253f40ef9a709a1af39ce38b1d998af090f8127.tar.xz
Btrfs: Remove the invalid shrink size check up from btrfs_shrink_dev()
Remove an invalid size check up from btrfs_shrink_dev(). The new size should not larger than the device->total_bytes as it was already verified before coming to here(i.e. new_size < old_size). Remove invalid check up for btrfs_shrink_dev(). Signed-off-by: Jie Liu <jeff.liu@oracle.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 8fcf9a5..14c0d2e 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -1409,7 +1409,7 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root,
btrfs_commit_transaction(trans, root);
} else if (new_size < old_size) {
ret = btrfs_shrink_device(device, new_size);
- }
+ } /* equal, nothing need to do */
out_free:
kfree(vol_args);