diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2019-06-04 12:57:41 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-06-04 12:58:56 -0700 |
commit | 0c292cdaab5c226bcf90c3376a0f3942cb266eed (patch) | |
tree | 10ac8b1239b2fe47801d240b8bd6f38e66dc0773 /pkg/sentry/fs/tmpfs/tmpfs.go | |
parent | 7436ea247bc946b36a7e5e6ca6019796ef76d85c (diff) |
Remove the Dirent field from Pipe.
Dirents are ref-counted, but Pipes are not. Holding a Dirent inside of a Pipe
raises difficult questions about the lifecycle of the Pipe and Dirent.
Fortunately, we can side-step those questions by removing the Dirent field from
Pipe entirely. We only need the Dirent when constructing fs.Files (which are
ref-counted), and in GetFile (when a Dirent is passed to us anyways).
PiperOrigin-RevId: 251497628
Diffstat (limited to 'pkg/sentry/fs/tmpfs/tmpfs.go')
0 files changed, 0 insertions, 0 deletions