summaryrefslogtreecommitdiff
path: root/fs/9p/vfs_dir.c
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@kernel.org>2024-01-05 22:03:16 +0300
committerEric Van Hensbergen <ericvh@kernel.org>2024-01-26 19:46:56 +0300
commitb91a26696ef38eae1442aa03104e60bb49d2ac99 (patch)
tree65f28d68f9ab2327d0be8b33c32f468b29d5a92d /fs/9p/vfs_dir.c
parentf61c906a7dffaa21b28c52000a75f2c6554a8199 (diff)
downloadlinux-b91a26696ef38eae1442aa03104e60bb49d2ac99.tar.xz
fs/9p: rework qid2ino logic
This changes from a function to a macro because we can figure out if we are 32 or 64 bit at compile time. Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Diffstat (limited to 'fs/9p/vfs_dir.c')
-rw-r--r--fs/9p/vfs_dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/9p/vfs_dir.c b/fs/9p/vfs_dir.c
index 4102759a5cb5..e0d34e4e9076 100644
--- a/fs/9p/vfs_dir.c
+++ b/fs/9p/vfs_dir.c
@@ -127,7 +127,7 @@ static int v9fs_dir_readdir(struct file *file, struct dir_context *ctx)
}
over = !dir_emit(ctx, st.name, strlen(st.name),
- v9fs_qid2ino(&st.qid), dt_type(&st));
+ QID2INO(&st.qid), dt_type(&st));
p9stat_free(&st);
if (over)
return 0;
@@ -184,7 +184,7 @@ static int v9fs_dir_readdir_dotl(struct file *file, struct dir_context *ctx)
if (!dir_emit(ctx, curdirent.d_name,
strlen(curdirent.d_name),
- v9fs_qid2ino(&curdirent.qid),
+ QID2INO(&curdirent.qid),
curdirent.d_type))
return 0;