]> git.baikalelectronics.ru Git - kernel.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, 18 Jan 2023 10:58:25 +0000 (11:58 +0100)
commit18ca8ef231799519a26007df88c5a773bbb7a0d0
treea6bf55293e70c723295e0b6dcdb2bdeb0ac4bfb9
parentd949630ed74b196e546535d958fcaec414889d9d
nfsd: reorganize filecache.c

[ Upstream commit 4c8fb41f153f5a1220a2e1036f9ee7a7be3041fe ]

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>
Stable-dep-of: 581a77c94d4e ("nfsd: fix handling of cached open files in nfsd4_open codepath")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/filecache.c
fs/nfsd/trace.h