mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Change lingering uses of "memfs" in fsimpl/tmpfs to "tmpfs".
PiperOrigin-RevId: 307422746
This commit is contained in:
@@ -168,7 +168,7 @@ func BenchmarkVFS1TmpfsStat(b *testing.B) {
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkVFS2MemfsStat(b *testing.B) {
|
||||
func BenchmarkVFS2TmpfsStat(b *testing.B) {
|
||||
for _, depth := range depths {
|
||||
b.Run(fmt.Sprintf("%d", depth), func(b *testing.B) {
|
||||
ctx := contexttest.Context(b)
|
||||
@@ -362,7 +362,7 @@ func BenchmarkVFS1TmpfsMountStat(b *testing.B) {
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkVFS2MemfsMountStat(b *testing.B) {
|
||||
func BenchmarkVFS2TmpfsMountStat(b *testing.B) {
|
||||
for _, depth := range depths {
|
||||
b.Run(fmt.Sprintf("%d", depth), func(b *testing.B) {
|
||||
ctx := contexttest.Context(b)
|
||||
|
||||
@@ -148,7 +148,7 @@ func (fs *filesystem) doCreateAt(rp *vfs.ResolvingPath, dir bool, create func(pa
|
||||
if !dir && rp.MustBeDir() {
|
||||
return syserror.ENOENT
|
||||
}
|
||||
// In memfs, the only way to cause a dentry to be disowned is by removing
|
||||
// In tmpfs, the only way to cause a dentry to be disowned is by removing
|
||||
// it from the filesystem, so this check is equivalent to checking if
|
||||
// parent has been removed.
|
||||
if parent.vfsd.IsDisowned() {
|
||||
|
||||
@@ -247,7 +247,7 @@ func (i *inode) incLinksLocked() {
|
||||
panic("tmpfs.inode.incLinksLocked() called with no existing links")
|
||||
}
|
||||
if i.nlink == maxLinks {
|
||||
panic("memfs.inode.incLinksLocked() called with maximum link count")
|
||||
panic("tmpfs.inode.incLinksLocked() called with maximum link count")
|
||||
}
|
||||
atomic.AddUint32(&i.nlink, 1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user