diff options
author | Eric Van Hensbergen <ericvh@kernel.org> | 2024-01-06 01:25:39 +0300 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@kernel.org> | 2024-01-26 19:46:56 +0300 |
commit | 724a08450f74b02bd89078a596fd24857827c012 (patch) | |
tree | cf8ea7b5fbe538b4a90a64d469da908d1c2b76fb /fs/9p/vfs_super.c | |
parent | b91a26696ef38eae1442aa03104e60bb49d2ac99 (diff) | |
download | linux-724a08450f74b02bd89078a596fd24857827c012.tar.xz |
fs/9p: simplify iget to remove unnecessary paths
Remove the additional comparison operators and switch to
simply lookup by inode number (aka qid.path).
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r-- | fs/9p/vfs_super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index 3e009baa1b11..eeac06c2a84c 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c @@ -139,7 +139,7 @@ static struct dentry *v9fs_mount(struct file_system_type *fs_type, int flags, else sb->s_d_op = &v9fs_dentry_operations; - inode = v9fs_get_new_inode_from_fid(v9ses, fid, sb); + inode = v9fs_get_inode_from_fid(v9ses, fid, sb); if (IS_ERR(inode)) { retval = PTR_ERR(inode); goto release_sb; |