mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove IfChange/ThenChange lint from VFS2
As new functionality is added to VFS2, corresponding files in VFS1 don't need to be changed. PiperOrigin-RevId: 312153799
This commit is contained in:
committed by
gVisor bot
parent
99a18ec8b4
commit
20e6efd302
@@ -27,8 +27,6 @@ import (
|
||||
"gvisor.dev/gvisor/pkg/waiter"
|
||||
)
|
||||
|
||||
// LINT.IfChange
|
||||
|
||||
const (
|
||||
// canonMaxBytes is the number of bytes that fit into a single line of
|
||||
// terminal input in canonical mode. This corresponds to N_TTY_BUF_SIZE
|
||||
@@ -445,5 +443,3 @@ func (l *lineDiscipline) peek(b []byte) int {
|
||||
}
|
||||
return size
|
||||
}
|
||||
|
||||
// LINT.ThenChange(../../fs/tty/line_discipline.go)
|
||||
|
||||
@@ -27,8 +27,6 @@ import (
|
||||
"gvisor.dev/gvisor/pkg/waiter"
|
||||
)
|
||||
|
||||
// LINT.IfChange
|
||||
|
||||
// masterInode is the inode for the master end of the Terminal.
|
||||
type masterInode struct {
|
||||
kernfs.InodeAttrs
|
||||
@@ -222,5 +220,3 @@ func maybeEmitUnimplementedEvent(ctx context.Context, cmd uint32) {
|
||||
unimpl.EmitUnimplementedEvent(ctx)
|
||||
}
|
||||
}
|
||||
|
||||
// LINT.ThenChange(../../fs/tty/master.go)
|
||||
|
||||
@@ -25,8 +25,6 @@ import (
|
||||
"gvisor.dev/gvisor/pkg/waiter"
|
||||
)
|
||||
|
||||
// LINT.IfChange
|
||||
|
||||
// waitBufMaxBytes is the maximum size of a wait buffer. It is based on
|
||||
// TTYB_DEFAULT_MEM_LIMIT.
|
||||
const waitBufMaxBytes = 131072
|
||||
@@ -236,5 +234,3 @@ func (q *queue) waitBufAppend(b []byte) {
|
||||
q.waitBuf = append(q.waitBuf, b)
|
||||
q.waitBufLen += uint64(len(b))
|
||||
}
|
||||
|
||||
// LINT.ThenChange(../../fs/tty/queue.go)
|
||||
|
||||
@@ -26,8 +26,6 @@ import (
|
||||
"gvisor.dev/gvisor/pkg/waiter"
|
||||
)
|
||||
|
||||
// LINT.IfChange
|
||||
|
||||
// slaveInode is the inode for the slave end of the Terminal.
|
||||
type slaveInode struct {
|
||||
kernfs.InodeAttrs
|
||||
@@ -182,5 +180,3 @@ func (sfd *slaveFileDescription) Stat(ctx context.Context, opts vfs.StatOptions)
|
||||
fs := sfd.vfsfd.VirtualDentry().Mount().Filesystem()
|
||||
return sfd.inode.Stat(fs, opts)
|
||||
}
|
||||
|
||||
// LINT.ThenChange(../../fs/tty/slave.go)
|
||||
|
||||
@@ -22,8 +22,6 @@ import (
|
||||
"gvisor.dev/gvisor/pkg/usermem"
|
||||
)
|
||||
|
||||
// LINT.IfChanges
|
||||
|
||||
// Terminal is a pseudoterminal.
|
||||
//
|
||||
// +stateify savable
|
||||
@@ -120,5 +118,3 @@ func (tm *Terminal) tty(isMaster bool) *kernel.TTY {
|
||||
}
|
||||
return tm.slaveKTTY
|
||||
}
|
||||
|
||||
// LINT.ThenChange(../../fs/tty/terminal.go)
|
||||
|
||||
Reference in New Issue
Block a user