]> www.infradead.org Git - users/dwmw2/linux.git/commit
nfsd: simplify the delayed disposal list code
authorJeff Layton <jlayton@kernel.org>
Fri, 14 Apr 2023 21:31:44 +0000 (17:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:28 +0000 (16:19 +0200)
commit786e3248d5efdc561f2ca44ffa6cf651decb2323
treeede167e4d0b01194a53cbe08ddcdde396884789a
parenta53d804930dca78836c665b11a33f0b75418d0db
nfsd: simplify the delayed disposal list code

[ Upstream commit 92e4a6733f922f0fef1d0995f7b2d0eaff86c7ea ]

When queueing a dispose list to the appropriate "freeme" lists, it
pointlessly queues the objects one at a time to an intermediate list.

Remove a few helpers and just open code a list_move to make it more
clear and efficient. Better document the resulting functions with
kerneldoc comments.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c