diff options
author | Eric Van Hensbergen <ericvh@kernel.org> | 2024-01-05 19:03:16 +0000 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@kernel.org> | 2024-01-26 16:46:56 +0000 |
commit | b91a26696ef38eae1442aa03104e60bb49d2ac99 (patch) | |
tree | 65f28d68f9ab2327d0be8b33c32f468b29d5a92d /fs/9p/vfs_dir.c | |
parent | f61c906a7dffaa21b28c52000a75f2c6554a8199 (diff) | |
download | linux-b91a26696ef38eae1442aa03104e60bb49d2ac99.tar.gz linux-b91a26696ef38eae1442aa03104e60bb49d2ac99.tar.bz2 linux-b91a26696ef38eae1442aa03104e60bb49d2ac99.zip |
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.c | 4 |
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; |