mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Mark dropped pages unevictable in fsimpl/gofer.dentry.destroyLocked.
PiperOrigin-RevId: 325531657
This commit is contained in:
@@ -1264,8 +1264,11 @@ func (d *dentry) destroyLocked(ctx context.Context) {
|
||||
}
|
||||
}
|
||||
// Discard cached data.
|
||||
d.cache.DropAll(mf)
|
||||
d.dirty.RemoveAll()
|
||||
if !d.cache.IsEmpty() {
|
||||
mf.MarkAllUnevictable(d)
|
||||
d.cache.DropAll(mf)
|
||||
d.dirty.RemoveAll()
|
||||
}
|
||||
d.dataMu.Unlock()
|
||||
// Clunk open fids and close open host FDs.
|
||||
if !d.readFile.isNil() {
|
||||
|
||||
Reference in New Issue
Block a user