mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
freevxfs_lookup(): use d_splice_alias()
code is simpler that way Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -193,13 +193,9 @@ vxfs_lookup(struct inode *dip, struct dentry *dp, unsigned int flags)
|
|||||||
return ERR_PTR(-ENAMETOOLONG);
|
return ERR_PTR(-ENAMETOOLONG);
|
||||||
|
|
||||||
ino = vxfs_inode_by_name(dip, dp);
|
ino = vxfs_inode_by_name(dip, dp);
|
||||||
if (ino) {
|
if (ino)
|
||||||
ip = vxfs_iget(dip->i_sb, ino);
|
ip = vxfs_iget(dip->i_sb, ino);
|
||||||
if (IS_ERR(ip))
|
return d_splice_alias(ip, dp);
|
||||||
return ERR_CAST(ip);
|
|
||||||
}
|
|
||||||
d_add(dp, ip);
|
|
||||||
return NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user