Btrfs: Don't error on resizing FS to same size
[pandora-kernel.git] / fs / btrfs / ioctl.c
index a90e749..72d4616 100644 (file)
@@ -1278,7 +1278,7 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root,
                }
                ret = btrfs_grow_device(trans, device, new_size);
                btrfs_commit_transaction(trans, root);
-       } else {
+       } else if (new_size < old_size) {
                ret = btrfs_shrink_device(device, new_size);
        }