OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f062abf
)
Btrfs: reserve metadata space in btrfs_ioctl_setflags()
author
Li Zefan
<lizf@cn.fujitsu.com>
Thu, 29 Dec 2011 05:39:50 +0000
(13:39 +0800)
committer
Li Zefan
<lizf@cn.fujitsu.com>
Wed, 11 Jan 2012 02:26:39 +0000
(10:26 +0800)
Check and reserve space for btrfs_update_inode().
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
fs/btrfs/ioctl.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/ioctl.c
b/fs/btrfs/ioctl.c
index
9619fb0
..
fe8a60c
100644
(file)
--- 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;