mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Add leak checking for kernfs.Dentry.
Updates #1486. PiperOrigin-RevId: 339581879
This commit is contained in:
@@ -113,7 +113,7 @@ func (fstype *FilesystemType) newFilesystem(ctx context.Context, vfsObj *vfs.Vir
|
||||
root.EnableLeakCheck()
|
||||
|
||||
var rootD kernfs.Dentry
|
||||
rootD.Init(&fs.Filesystem, root)
|
||||
rootD.InitRoot(&fs.Filesystem, root)
|
||||
|
||||
// Construct the pts master inode and dentry. Linux always uses inode
|
||||
// id 2 for ptmx. See fs/devpts/inode.c:mknod_ptmx.
|
||||
|
||||
Reference in New Issue
Block a user