diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-05-21 14:54:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-05-21 14:54:57 -0400 |
commit | 5997aab0a11ea27ee8e520ecc551ed18fd3e8296 (patch) | |
tree | 671f8ec1616f646614f2994537fc32704251465d /fs/udf | |
parent | 3b78ce4a34b761c7fe13520de822984019ff1a8f (diff) | |
parent | baf10564fbb66ea222cae66fbff11c444590ffd9 (diff) |
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs fixes from Al Viro:
"Assorted fixes all over the place"
* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
aio: fix io_destroy(2) vs. lookup_ioctx() race
ext2: fix a block leak
nfsd: vfs_mkdir() might succeed leaving dentry negative unhashed
cachefiles: vfs_mkdir() might succeed leaving dentry negative unhashed
unfuck sysfs_mount()
kernfs: deal with kernfs_fill_super() failures
cramfs: Fix IS_ENABLED typo
befs_lookup(): use d_splice_alias()
affs_lookup: switch to d_splice_alias()
affs_lookup(): close a race with affs_remove_link()
fix breakage caused by d_find_alias() semantics change
fs: don't scan the inode cache before SB_BORN is set
do d_instantiate/unlock_new_inode combinations safely
iov_iter: fix memory leak in pipe_get_pages_alloc()
iov_iter: fix return type of __pipe_get_pages()
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/namei.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 0458dd47e105..c586026508db 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c | |||
@@ -622,8 +622,7 @@ static int udf_add_nondir(struct dentry *dentry, struct inode *inode) | |||
622 | if (fibh.sbh != fibh.ebh) | 622 | if (fibh.sbh != fibh.ebh) |
623 | brelse(fibh.ebh); | 623 | brelse(fibh.ebh); |
624 | brelse(fibh.sbh); | 624 | brelse(fibh.sbh); |
625 | unlock_new_inode(inode); | 625 | d_instantiate_new(dentry, inode); |
626 | d_instantiate(dentry, inode); | ||
627 | 626 | ||
628 | return 0; | 627 | return 0; |
629 | } | 628 | } |
@@ -733,8 +732,7 @@ static int udf_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode) | |||
733 | inc_nlink(dir); | 732 | inc_nlink(dir); |
734 | dir->i_ctime = dir->i_mtime = current_time(dir); | 733 | dir->i_ctime = dir->i_mtime = current_time(dir); |
735 | mark_inode_dirty(dir); | 734 | mark_inode_dirty(dir); |
736 | unlock_new_inode(inode); | 735 | d_instantiate_new(dentry, inode); |
737 | d_instantiate(dentry, inode); | ||
738 | if (fibh.sbh != fibh.ebh) | 736 | if (fibh.sbh != fibh.ebh) |
739 | brelse(fibh.ebh); | 737 | brelse(fibh.ebh); |
740 | brelse(fibh.sbh); | 738 | brelse(fibh.sbh); |