Skip to content
Commit d4043739 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

document-portal: Don't invalidate forgotten inodes

We only want to invalidate the entries if the kernel didn't already
tell us to foget the inode, so we keep the parent inodes of all
domains alive so we can check their kernel ref counts. These parents
are all virtual and few so keeping them alive longer doesn't use a lot
of memory or file descriptors.

Without this i was sometimes getting ENOTDIR when telling the kernel
to invalidate an entry, presumably because the parent inode I passed
had been forgotten and reused for another file.
parent 5b243fc7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment