summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZyad A. Ali <zyad.ali.me@gmail.com>2021-07-22 21:20:12 +0200
committerZyad A. Ali <zyad.ali.me@gmail.com>2021-07-22 21:20:12 +0200
commitcbc0b4e1265e10b71aa1e0dd96a04c2e534478ec (patch)
treecf20f984f129a7b278acaea5ccb57f9c864002a4
parentf1f746dddcc0eb97c04b7d4a521962edb30cbea8 (diff)
Delete unnecessary function.
Since cgroupfs.dir embedes cgroupfs.implStatFS, and dir.StatFS and implStatFS.StatFS are identical, dir.StatFS is not needed.
-rw-r--r--pkg/sentry/fsimpl/cgroupfs/cgroupfs.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/pkg/sentry/fsimpl/cgroupfs/cgroupfs.go b/pkg/sentry/fsimpl/cgroupfs/cgroupfs.go
index 24e28a51f..22c8b7fda 100644
--- a/pkg/sentry/fsimpl/cgroupfs/cgroupfs.go
+++ b/pkg/sentry/fsimpl/cgroupfs/cgroupfs.go
@@ -383,11 +383,6 @@ func (d *dir) DecRef(ctx context.Context) {
d.dirRefs.DecRef(func() { d.Destroy(ctx) })
}
-// StatFS implements kernfs.Inode.StatFS.
-func (d *dir) StatFS(ctx context.Context, fs *vfs.Filesystem) (linux.Statfs, error) {
- return vfs.GenericStatFS(linux.CGROUP_SUPER_MAGIC), nil
-}
-
// controllerFile represents a generic control file that appears within a cgroup
// directory.
//