filecache.c (b2ff1bd71db2a1b193a6dde0845adcd69cbcf75e) filecache.c (972cc0e0924598cb293b919d39c848dc038b2c28)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * The NFSD open file cache.
4 *
5 * (c) 2015 - Jeff Layton <jeff.layton@primarydata.com>
6 *
7 * An nfsd_file object is a per-file collection of open state that binds
8 * together:

--- 893 unchanged lines hidden (view full) ---

902 goto out;
903}
904
905/**
906 * __nfsd_file_cache_purge: clean out the cache for shutdown
907 * @net: net-namespace to shut down the cache (may be NULL)
908 *
909 * Walk the nfsd_file cache and close out any that match @net. If @net is NULL,
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * The NFSD open file cache.
4 *
5 * (c) 2015 - Jeff Layton <jeff.layton@primarydata.com>
6 *
7 * An nfsd_file object is a per-file collection of open state that binds
8 * together:

--- 893 unchanged lines hidden (view full) ---

902 goto out;
903}
904
905/**
906 * __nfsd_file_cache_purge: clean out the cache for shutdown
907 * @net: net-namespace to shut down the cache (may be NULL)
908 *
909 * Walk the nfsd_file cache and close out any that match @net. If @net is NULL,
910 * then close out everything. Called when an nfsd instance is being shut down.
910 * then close out everything. Called when an nfsd instance is being shut down,
911 * and when the exports table is flushed.
911 */
912static void
913__nfsd_file_cache_purge(struct net *net)
914{
915 struct rhashtable_iter iter;
916 struct nfsd_file *nf;
917 LIST_HEAD(dispose);
918

--- 386 unchanged lines hidden ---
912 */
913static void
914__nfsd_file_cache_purge(struct net *net)
915{
916 struct rhashtable_iter iter;
917 struct nfsd_file *nf;
918 LIST_HEAD(dispose);
919

--- 386 unchanged lines hidden ---