diff options
author | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-07-22 21:20:12 +0200 |
---|---|---|
committer | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-07-22 21:20:12 +0200 |
commit | cbc0b4e1265e10b71aa1e0dd96a04c2e534478ec (patch) | |
tree | cf20f984f129a7b278acaea5ccb57f9c864002a4 /pkg | |
parent | f1f746dddcc0eb97c04b7d4a521962edb30cbea8 (diff) |
Delete unnecessary function.
Since cgroupfs.dir embedes cgroupfs.implStatFS, and dir.StatFS and
implStatFS.StatFS are identical, dir.StatFS is not needed.
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/sentry/fsimpl/cgroupfs/cgroupfs.go | 5 |
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. // |