aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/nfsd/netns.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2018-12-14 09:40:56 -0500
committerJ. Bruce Fields <bfields@redhat.com>2019-07-03 17:52:49 -0400
commit2c830dd7209bf67863ae0b83c7dde847967ea43c (patch)
treed0387e1679a574ff710df87726d007ad641a8773 /fs/nfsd/netns.h
parentnfs: fix out-of-date connectathon talk URL (diff)
downloadwireguard-linux-2c830dd7209bf67863ae0b83c7dde847967ea43c.tar.xz
wireguard-linux-2c830dd7209bf67863ae0b83c7dde847967ea43c.zip
nfsd: persist nfsd filesystem across mounts
Keep around one internal mount of the nfsd filesystem so that we can add stuff to it when clients come and go, regardless of whether anyone has it mounted. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/netns.h')
-rw-r--r--fs/nfsd/netns.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h
index ceb413f8fff3..df4ba4b8b540 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -42,6 +42,9 @@ struct nfsd_net {
bool grace_ended;
time_t boot_time;
+ /* internal mount of the "nfsd" pseudofilesystem: */
+ struct vfsmount *nfsd_mnt;
+
/*
* reclaim_str_hashtbl[] holds known client info from previous reset/reboot
* used in reboot/reset lease grace period processing