Commit 3a2e2bb
inodes: preserve access time while unloaded
Summary:
Retain `lastFsRequestTime` in `UnloadedInode` and restore it when `InodeMap` reconstructs an `InodeBase`. Keep restoration private to `InodeMap` so a published inode cannot overwrite a newer filesystem request timestamp. Serialize the raw timestamp in an optional takeover field so inode age survives graceful restart; payloads from older versions default to the receiver current time.
I am making GC more aware/compatible with remembered inodes. Previously GC would load remembered inodes and default the last fs time to "now" so they would never get GC'd. Instead we track the last fs time for remembered inodes in general and across takeover.
Reviewed By: MichaelCuevas
Differential Revision: D115455900
fbshipit-source-id: 4a7240fd2baaee68e19c6bd4228bc4dfbfb742f11 parent 9d2f8ea commit 3a2e2bb
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
0 commit comments