summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/mounts.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-19 22:34:28 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-19 22:34:28 +0000
commit653f6c8e70aab92a3a8fea826687c5e9f1e3a8df (patch)
treeee3d6641539eb8223acf34ab576d1aa507e21d19 /pkg/sentry/fs/mounts.go
parent788470b523c421bd20e41a94ba6faea9f174b8b8 (diff)
parent57d9bd922b4eff922d1a5185529fe5446249d592 (diff)
Merge release-20200219.0-208-g57d9bd9 (automated)
Diffstat (limited to 'pkg/sentry/fs/mounts.go')
-rw-r--r--pkg/sentry/fs/mounts.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/sentry/fs/mounts.go b/pkg/sentry/fs/mounts.go
index c7981f66e..b414ddaee 100644
--- a/pkg/sentry/fs/mounts.go
+++ b/pkg/sentry/fs/mounts.go
@@ -273,19 +273,6 @@ func (mns *MountNamespace) DecRef() {
mns.DecRefWithDestructor(mns.destroy)
}
-// Freeze freezes the entire mount tree.
-func (mns *MountNamespace) Freeze() {
- mns.mu.Lock()
- defer mns.mu.Unlock()
-
- // We only want to freeze Dirents with active references, not Dirents referenced
- // by a mount's MountSource.
- mns.flushMountSourceRefsLocked()
-
- // Freeze the entire shebang.
- mns.root.Freeze()
-}
-
// withMountLocked prevents further walks to `node`, because `node` is about to
// be a mount point.
func (mns *MountNamespace) withMountLocked(node *Dirent, fn func() error) error {