diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-01-16 13:58:50 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-01-16 15:05:40 -0800 |
commit | ab48112e41427579ecf585f6280be1e2d58acf06 (patch) | |
tree | fc412d24661f9f8ecf13ca2b648bac961953199a /pkg/sentry/fs/proc/meminfo.go | |
parent | 70d7c52bd7583393d39177a7935cca57372d67f1 (diff) |
Add IfChange/ThenChange reminders in fs/proc
There is a lot of code duplication for VFSv2 and this
serves as remind to keep the copies in sync.
Updates #1195
PiperOrigin-RevId: 290139234
Diffstat (limited to 'pkg/sentry/fs/proc/meminfo.go')
-rw-r--r-- | pkg/sentry/fs/proc/meminfo.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/fs/proc/meminfo.go b/pkg/sentry/fs/proc/meminfo.go index 495f3e3ba..313c6a32b 100644 --- a/pkg/sentry/fs/proc/meminfo.go +++ b/pkg/sentry/fs/proc/meminfo.go @@ -25,6 +25,8 @@ import ( "gvisor.dev/gvisor/pkg/sentry/usermem" ) +// LINT.IfChange + // meminfoData backs /proc/meminfo. // // +stateify savable @@ -83,3 +85,5 @@ func (d *meminfoData) ReadSeqFileData(ctx context.Context, h seqfile.SeqHandle) fmt.Fprintf(&buf, "Shmem: %8d kB\n", snapshot.Tmpfs/1024) return []seqfile.SeqData{{Buf: buf.Bytes(), Handle: (*meminfoData)(nil)}}, 0 } + +// LINT.ThenChange(../../fsimpl/proc/tasks_files.go) |