nfsd: simplify the delayed disposal list code
authorJeff Layton <jlayton@kernel.org>
Fri, 14 Apr 2023 21:31:44 +0000 (17:31 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 26 Apr 2023 13:05:01 +0000 (09:05 -0400)
commit92e4a6733f922f0fef1d0995f7b2d0eaff86c7ea
tree37a8e390af1ab6214a1168a6be8ceddf91fe4750
parent55fcc7d9159de886296626e47db2c81f8578c7e1
nfsd: simplify the delayed disposal list code

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