btrfs: reserve no transaction units in btrfs_feature_attr_store
authorDavid Sterba <dsterba@suse.cz>
Mon, 18 Nov 2013 13:24:20 +0000 (14:24 +0100)
committerChris Mason <clm@fb.com>
Tue, 28 Jan 2014 21:19:40 +0000 (13:19 -0800)
Added in patch "btrfs: add ability to change features via sysfs",
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: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/sysfs.c

index 669fdf777b6cc5e7a47870e62a88a5d874476210..8fdc0520e298e1eee88baf62cc558c1445bd4fd2 100644 (file)
@@ -150,7 +150,7 @@ static ssize_t btrfs_feature_attr_store(struct kobject *kobj,
        btrfs_info(fs_info, "%s %s feature flag",
                   val ? "Setting" : "Clearing", fa->kobj_attr.attr.name);
 
-       trans = btrfs_start_transaction(fs_info->fs_root, 1);
+       trans = btrfs_start_transaction(fs_info->fs_root, 0);
        if (IS_ERR(trans))
                return PTR_ERR(trans);