]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nfs: remove fileid field from struct nfs_inode
authorJeff Layton <jlayton@kernel.org>
Tue, 12 May 2026 16:12:45 +0000 (12:12 -0400)
committerAnna Schumaker <anna.schumaker@hammerspace.com>
Mon, 8 Jun 2026 14:21:54 +0000 (10:21 -0400)
Now that all NFS client code uses inode->i_ino directly to store and
access the 64-bit NFS fileid, the separate fileid field in struct
nfs_inode is unused. Remove it to save 8 bytes per NFS inode.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
include/linux/nfs_fs.h

index 83063f4ab488055ab6abf5cca85fc53bc5f57a1c..ec17e602c979c5c2cab984779e04064958dfe5c7 100644 (file)
@@ -145,11 +145,6 @@ struct nfs4_xattr_cache;
  * nfs fs inode data in memory
  */
 struct nfs_inode {
-       /*
-        * The 64bit 'inode number'
-        */
-       __u64 fileid;
-
        /*
         * NFS file handle
         */