From: David Sterba Date: Fri, 7 Feb 2014 13:34:04 +0000 (+0100) Subject: btrfs: reserve no transaction units in btrfs_ioctl_set_features X-Git-Tag: accepted/tizen/common/20141203.182822~134^2~149 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8051aa1a3d5aaa7bd4c062cad94d09c3d567ef2e;p=platform%2Fkernel%2Flinux-arm64.git btrfs: reserve no transaction units in btrfs_ioctl_set_features 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 Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 5bbf6b7..ebdd866 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -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);