diff options
author | Eric Van Hensbergen <ericvh@kernel.org> | 2024-01-05 22:25:39 +0000 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@kernel.org> | 2024-01-26 16:46:56 +0000 |
commit | 724a08450f74b02bd89078a596fd24857827c012 (patch) | |
tree | cf8ea7b5fbe538b4a90a64d469da908d1c2b76fb /fs/9p/v9fs_vfs.h | |
parent | b91a26696ef38eae1442aa03104e60bb49d2ac99 (diff) | |
download | linux-724a08450f74b02bd89078a596fd24857827c012.tar.gz linux-724a08450f74b02bd89078a596fd24857827c012.tar.bz2 linux-724a08450f74b02bd89078a596fd24857827c012.zip |
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/v9fs_vfs.h')
-rw-r--r-- | fs/9p/v9fs_vfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/v9fs_vfs.h b/fs/9p/v9fs_vfs.h index d3aefbec4de6..7923c3c347cb 100644 --- a/fs/9p/v9fs_vfs.h +++ b/fs/9p/v9fs_vfs.h @@ -42,7 +42,7 @@ struct inode *v9fs_alloc_inode(struct super_block *sb); void v9fs_free_inode(struct inode *inode); void v9fs_set_netfs_context(struct inode *inode); int v9fs_init_inode(struct v9fs_session_info *v9ses, - struct inode *inode, umode_t mode, dev_t rdev); + struct inode *inode, struct p9_qid *qid, umode_t mode, dev_t rdev); void v9fs_evict_inode(struct inode *inode); #if (BITS_PER_LONG == 32) #define QID2INO(q) ((ino_t) (((q)->path+2) ^ (((q)->path) >> 32))) |