On Tue, Jun 23, 2009 at 10:38:43AM -0500, Felix Blyakher wrote:
> I'd like to (re)propose Dave's patch from the last October to
> address the problem of atime never making to the disk. Many
> people complained about it.
> I may have slightly adjusted the patch to fit the latest
> code, and verified it addresses the issue.
> The reference to the discussion on this matter on xfs mailing
> list is here:
Can you run some benchmarks to see what impact it has with the
new relatime default?
The only places where we actual look at i_update_core are fsync and
the decision wether to flush out the inode fully in reclaim and
I we should sync out the inode there.
The VFS ends up calling into ->dirty_inode from the following places:
And it doesn't distinguish between setting I_DIRTY_SYNC and
I_DIRTY_DATASYNC which means we'll also get it for the first two
events which only affect the data and not the inode core.
I'd be much more comfortable if we'd pass down those flags to
->dirty_inode and optimize based on that.
On the bright side this patch will also allow us to hack around the VFS
layering violation which currently causes missed c/mtime updates on