Rethinking multi-grain timestamps
Rethinking multi-grain timestamps
Posted Oct 11, 2023 10:25 UTC (Wed) by jlayton (subscriber, #31672)In reply to: Rethinking multi-grain timestamps by nim-nim
Parent article: Rethinking multi-grain timestamps
Basically, when we go to update any of the inode's timestamps we'll always grab the coarse-grained timestamp in the kernel for the update, unless someone has viewed it recently, in which case we'll grab a fine-grained timestamp instead. The idea is to update the coarse grained timestamp whenever we hand out a fine-grained one. That avoids the problem described in the article where the timestamps on files updated later appear to be earlier than the fine grained update.
That does make issuing a fine-grained timestamp a bit more expensive though, so some of my current effort is in trying to improve that, and minimizing the number of fine-grained updates that are needed.
