Deduplicate unix socket Release() method.

PiperOrigin-RevId: 308932254
This commit is contained in:
Dean Deng
2020-04-28 17:43:14 -07:00
committed by gVisor bot
parent 37a59bc76d
commit f93f2fda74
2 changed files with 1 additions and 8 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ func (s *socketOpsCommon) DecRef() {
}
// Release implemements fs.FileOperations.Release.
func (s *SocketOperations) Release() {
func (s *socketOpsCommon) Release() {
// Release only decrements a reference on s because s may be referenced in
// the abstract socket namespace.
s.DecRef()
-7
View File
@@ -273,13 +273,6 @@ func (s *SocketVFS2) Write(ctx context.Context, src usermem.IOSequence, opts vfs
})
}
// Release implements vfs.FileDescriptionImpl.
func (s *SocketVFS2) Release() {
// Release only decrements a reference on s because s may be referenced in
// the abstract socket namespace.
s.DecRef()
}
// Readiness implements waiter.Waitable.Readiness.
func (s *SocketVFS2) Readiness(mask waiter.EventMask) waiter.EventMask {
return s.socketOpsCommon.Readiness(mask)