From: Li Zefan Date: Thu, 29 Dec 2011 05:39:50 +0000 (+0800) Subject: Btrfs: reserve metadata space in btrfs_ioctl_setflags() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4da6f1a332f6c16b6594c7892f13c31459b9b1c8;p=mv-sheeva.git Btrfs: reserve metadata space in btrfs_ioctl_setflags() Check and reserve space for btrfs_update_inode(). Signed-off-by: Li Zefan --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 9619fb03a5d..fe8a60c865e 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;