export.c (65294c1f2c5e72b15b76e16c8c8cfd9359fc9f6f) | export.c (5e113224c17e2fb156b785ddbbc48a0209fddb0c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * NFS exporting and validation. 4 * 5 * We maintain a list of clients, each of which has a list of 6 * exports. To export an fs to a given client, you first have 7 * to create the client entry with NFSCTL_ADDCLIENT, which 8 * creates a client control block and adds it to the hash --- 226 unchanged lines hidden (view full) --- 235 236static void expkey_flush(void) 237{ 238 /* 239 * Take the nfsd_mutex here to ensure that the file cache is not 240 * destroyed while we're in the middle of flushing. 241 */ 242 mutex_lock(&nfsd_mutex); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * NFS exporting and validation. 4 * 5 * We maintain a list of clients, each of which has a list of 6 * exports. To export an fs to a given client, you first have 7 * to create the client entry with NFSCTL_ADDCLIENT, which 8 * creates a client control block and adds it to the hash --- 226 unchanged lines hidden (view full) --- 235 236static void expkey_flush(void) 237{ 238 /* 239 * Take the nfsd_mutex here to ensure that the file cache is not 240 * destroyed while we're in the middle of flushing. 241 */ 242 mutex_lock(&nfsd_mutex); |
243 nfsd_file_cache_purge(); | 243 nfsd_file_cache_purge(current->nsproxy->net_ns); |
244 mutex_unlock(&nfsd_mutex); 245} 246 247static const struct cache_detail svc_expkey_cache_template = { 248 .owner = THIS_MODULE, 249 .hash_size = EXPKEY_HASHMAX, 250 .name = "nfsd.fh", 251 .cache_put = expkey_put, --- 1055 unchanged lines hidden --- | 244 mutex_unlock(&nfsd_mutex); 245} 246 247static const struct cache_detail svc_expkey_cache_template = { 248 .owner = THIS_MODULE, 249 .hash_size = EXPKEY_HASHMAX, 250 .name = "nfsd.fh", 251 .cache_put = expkey_put, --- 1055 unchanged lines hidden --- |