]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChris Mason <chris.mason@oracle.com>
Fri, 16 Dec 2011 19:40:44 +0000 (14:40 -0500)
commit791ad57ae08d39883dcbe3d1184d58d7539f41e2
tree981702ff112731ce4a346cde49c8ea27610c93a6
parent845d804f46cbc2a4bf020217ace1746c2282539f
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>
(cherry picked from commit ece7d20e8be6730fbb29f4550de6b19b1a3a9387)
fs/btrfs/ioctl.c