summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-09-16 12:44:20 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2016-09-16 12:44:20 +0200
commit598e3c8f72f5b77c84d2cb26cfd936ffb3cfdbaa (patch)
tree485f1dd152279acde134219e011f3f1dadbe5495 /block
parentf2b20f6ee842313a0d681dbbf7f87b70291a6a3b (diff)
downloadop-kernel-dev-598e3c8f72f5b77c84d2cb26cfd936ffb3cfdbaa.zip
op-kernel-dev-598e3c8f72f5b77c84d2cb26cfd936ffb3cfdbaa.tar.gz
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: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud