Btrfs: Remove the invalid shrink size check up from btrfs_shrink_dev()
authorjeff.liu <jeff.liu@oracle.com>
Sat, 27 Oct 2012 12:06:39 +0000 (12:06 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:16 +0000 (17:15 -0500)
commit8d55e3dc3f7afb0753cb986cd074a14b30236957
tree87803116f56aad5771c94ab78e1c01649b9a4919
parent1aa1536c8c57022dc02229191451994c40c57d12
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>
fs/btrfs/ioctl.c
fs/btrfs/volumes.c