]> www.infradead.org Git - users/hch/misc.git/commit
NFS: use a hash table for delegation lookup nfs-delegation-hash
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Jul 2025 08:41:29 +0000 (10:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 8 Jul 2025 08:53:34 +0000 (10:53 +0200)
commit79741f20771fa6bd799c253ce0212abbf153f807
tree52e133b9f8bd63925ace5eaf3165141143622428
parent38a7979ff680f17a9da3d9f99b393dee0fd71dd1
NFS: use a hash table for delegation lookup

nfs_delegation_find_inode currently has to walk the entire list of
delegations per inode, which can become pretty large, and can become even
larger when increasing the delegation watermark.

Add a hash table to speed up the delegation lookup, sized as a fraction
of the delegation watermark.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/nfs/client.c
fs/nfs/delegation.c
fs/nfs/delegation.h
include/linux/nfs_fs_sb.h