Skip to content
Commit 598e3c8f authored by Miklos Szeredi's avatar Miklos Szeredi
Browse files

vfs: update ovl inode before relatime check



On overlayfs relatime_need_update() needs inode times to be correct on
overlay inode.  But i_mtime and i_ctime are updated by filesystem code on
underlying inode only, so they will be out-of-date on the overlay inode.

This patch copies the times from the underlying inode if needed.  This
can't be done if called from RCU lookup (link following) but link m/ctime
are not updated by fs, so this is all right.

This patch doesn't change functionality for anything but overlayfs.

Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
parent f2b20f6e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment