summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2011-12-29 13:39:50 +0800
committerLi Zefan <lizf@cn.fujitsu.com>2012-01-11 10:26:39 +0800
commit4da6f1a332f6c16b6594c7892f13c31459b9b1c8 (patch)
treee647af08d851ccb13e89312394c9dd1fdaa785c6 /fs/btrfs/ioctl.c
parentf062abf089ff705e09bbaa6fa1e2fd7688a0f2ea (diff)
downloadop-kernel-dev-4da6f1a332f6c16b6594c7892f13c31459b9b1c8.zip
op-kernel-dev-4da6f1a332f6c16b6594c7892f13c31459b9b1c8.tar.gz
Btrfs: reserve metadata space in btrfs_ioctl_setflags()
Check and reserve space for btrfs_update_inode(). Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 9619fb0..fe8a60c 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -254,7 +254,7 @@ static int btrfs_ioctl_setflags(struct file *file, void __user *arg)
ip->flags &= ~(BTRFS_INODE_COMPRESS | BTRFS_INODE_NOCOMPRESS);
}
- trans = btrfs_join_transaction(root);
+ trans = btrfs_start_transaction(root, 1);
if (IS_ERR(trans)) {
ret = PTR_ERR(trans);
goto out_drop;
OpenPOWER on IntegriCloud