Btrfs: Don't error on resizing FS to same size
authorMike Fleetwood <mike.fleetwood@googlemail.com>
Fri, 18 Nov 2011 18:55:01 +0000 (18:55 +0000)
committerDavid Sterba <dsterba@suse.cz>
Wed, 30 Nov 2011 17:46:04 +0000 (18:46 +0100)
commitece7d20e8be6730fbb29f4550de6b19b1a3a9387
tree7c01770040d8dd86548610679ab629683ec94017
parentaa38a711a893accf5b5192f3d705a120deaa81e0
Btrfs: Don't error on resizing FS to same size

It seems overly harsh to fail a resize of a btrfs file system to the
same size when a shrink or grow would succeed.  User app GParted trips
over this error.  Allow it by bypassing the shrink or grow operation.

Signed-off-by: Mike Fleetwood <mike.fleetwood@googlemail.com>
fs/btrfs/ioctl.c