btrfs: reserve no transaction units in btrfs_ioctl_set_features
authorDavid Sterba <dsterba@suse.cz>
Fri, 7 Feb 2014 13:34:04 +0000 (14:34 +0100)
committerChris Mason <clm@fb.com>
Sun, 9 Feb 2014 01:57:15 +0000 (17:57 -0800)
Added in patch "btrfs: add ioctls to query/change feature bits online"
modifications to superblock don't need to reserve metadata blocks when
starting a transaction.

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/ioctl.c

index 5bbf6b7216c3909b57458113e9c5a0d2db749b69..ebdd866d4cfd0de8b67c426d9b2b6d0c79745778 100644 (file)
@@ -4690,7 +4690,7 @@ static int btrfs_ioctl_set_features(struct file *file, void __user *arg)
        if (ret)
                return ret;
 
-       trans = btrfs_start_transaction(root, 1);
+       trans = btrfs_start_transaction(root, 0);
        if (IS_ERR(trans))
                return PTR_ERR(trans);