summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJeff Layton <jlayton@kernel.org>2026-05-12 12:12:42 -0400
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-06-08 10:21:54 -0400
commit0cad7630425f4c9ee0dfa376ff8bf60c88ff2566 (patch)
tree47b61ea631821d44c5732b54c518a7f21d01bb53 /include/linux
parent4549871118cf616eecdd2d939f78e3b9e1dddc48 (diff)
nfs: store the full NFS fileid in inode->i_ino
Now that inode->i_ino is a 64-bit value, store the full NFS fileid in it directly instead of an XOR-folded hash. This makes NFS_FILEID() and set_nfs_fileid() operate on inode->i_ino rather than the separate nfsi->fileid field. Since iget5_locked() and ilookup5() now accept a u64 hashval, pass the full fileid as the hash parameter directly. Convert direct nfsi->fileid accesses in nfs_check_inode_attributes(), nfs_update_inode(), and nfs_same_file() to use inode->i_ino. Assisted-by: Claude:claude-opus-4-6 Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/nfs_fs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index 4623262da3c0..8e48053b3069 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -396,12 +396,12 @@ static inline int NFS_STALE(const struct inode *inode)
static inline __u64 NFS_FILEID(const struct inode *inode)
{
- return NFS_I(inode)->fileid;
+ return inode->i_ino;
}
static inline void set_nfs_fileid(struct inode *inode, __u64 fileid)
{
- NFS_I(inode)->fileid = fileid;
+ inode->i_ino = fileid;
}
static inline void nfs_mark_for_revalidate(struct inode *inode)