[PATCH] switch all filesystems over to d_obtain_alias
Switch all users of d_alloc_anon to d_obtain_alias. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
committed by
Al Viro
parent
4ea3ada295
commit
440037287c
@@ -311,11 +311,10 @@ xfs_open_by_handle(
|
||||
return new_fd;
|
||||
}
|
||||
|
||||
dentry = d_alloc_anon(inode);
|
||||
if (dentry == NULL) {
|
||||
iput(inode);
|
||||
dentry = d_obtain_alias(inode);
|
||||
if (IS_ERR(dentry)) {
|
||||
put_unused_fd(new_fd);
|
||||
return -XFS_ERROR(ENOMEM);
|
||||
return PTR_ERR(dentry);
|
||||
}
|
||||
|
||||
/* Ensure umount returns EBUSY on umounts while this file is open. */
|
||||
|
Reference in New Issue
Block a user