]> www.infradead.org Git - users/dwmw2/linux.git/commit
nfsd: reorganize filecache.c
authorJeff Layton <jlayton@kernel.org>
Wed, 2 Nov 2022 18:44:48 +0000 (14:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:19:23 +0000 (16:19 +0200)
commitdc468e0799618920b672bc5778713f320cc3ddb9
treee7c080bcfc46c53f8a88988a96d0f4344dfe6491
parent6340d965599d7b5c3b863dce72b46b768bf1024b
nfsd: reorganize filecache.c

[ Upstream commit 8214118589881b2d390284410c5ff275e7a5e03c ]

In a coming patch, we're going to rework how the filecache refcounting
works. Move some code around in the function to reduce the churn in the
later patches, and rename some of the functions with (hopefully) clearer
names: nfsd_file_flush becomes nfsd_file_fsync, and
nfsd_file_unhash_and_dispose is renamed to nfsd_file_unhash_and_queue.

Also, the nfsd_file_put_final tracepoint is renamed to nfsd_file_free,
to better match the name of the function from which it's called.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/filecache.c
fs/nfsd/trace.h