diff options
author | David Sterba <dsterba@suse.cz> | 2013-11-18 14:24:20 +0100 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 13:19:40 -0800 |
commit | 43d87fa23154d135a2a1006bc6656ae73ae84190 (patch) | |
tree | c8296616859fda15fc03b48cbff9764676ee6baf /fs/btrfs/sysfs.c | |
parent | 27a0dd61a5cf742ebcd7a82c47be2502b1113eff (diff) |
btrfs: reserve no transaction units in btrfs_feature_attr_store
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>
Diffstat (limited to 'fs/btrfs/sysfs.c')
-rw-r--r-- | fs/btrfs/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index 669fdf777b6c..8fdc0520e298 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c @@ -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); |