projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bdb1db
)
btrfs: fix btrfs_mkdir goto for no free objectids
author
Miao Xie
<miaox@cn.fujitsu.com>
Thu, 11 Feb 2010 08:06:58 +0000
(08:06 +0000)
committer
Chris Mason
<chris.mason@oracle.com>
Mon, 15 Mar 2010 15:00:11 +0000
(11:00 -0400)
btrfs_mkdir() must jump to the place of ending transaction after
btrfs_find_free_objectid() failed. Or this transaction can't end.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/inode.c
b/fs/btrfs/inode.c
index 3657925c2461e1f4d26ac1809df366db6b72b5a7..50ce8840a99b35f457168875628fd4b34de28815 100644
(file)
--- a/
fs/btrfs/inode.c
+++ b/
fs/btrfs/inode.c
@@
-4508,7
+4508,7
@@
static int btrfs_mkdir(struct inode *dir, struct dentry *dentry, int mode)
err = btrfs_find_free_objectid(trans, root, dir->i_ino, &objectid);
if (err) {
err = -ENOSPC;
- goto out_
unlock
;
+ goto out_
fail
;
}
inode = btrfs_new_inode(trans, root, dir, dentry->d_name.name,