]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFS: rewrite nfs_delegations_present in terms of nr_active_delegations
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Jan 2026 07:27:03 +0000 (08:27 +0100)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 20 Jan 2026 19:49:46 +0000 (14:49 -0500)
commit2d80e59f29d8cd14230899dfe9c462b710521a85
treed1851a159d0565bc564a49040b462e7949be51a5
parent20151c11364ec9e0110413e7098593bf7c1db83f
NFS: rewrite nfs_delegations_present in terms of nr_active_delegations

Renewal only cares for active delegations and not revoked ones.  Replace
the list empty check with reading the active delegation counter to
implement this.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/delegation.c