ovl: fix relatime for directories
authorMiklos Szeredi <mszeredi@redhat.com>
Tue, 5 Sep 2017 10:53:11 +0000 (12:53 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 5 Sep 2017 10:53:11 +0000 (12:53 +0200)
commitcd91304e7190b4c4802f8e413ab2214b233e0260
tree66a616319703171a07055fed8f6db52cd3f14c5a
parent495e642939114478a5237a7d91661ba93b76f15a
ovl: fix relatime for directories

Need to treat non-regular overlayfs files the same as regular files when
checking for an atime update.

Add a d_real() flag to make it return the upper dentry for all file types.

Reported-by: "zhangyi (F)" <yi.zhang@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/inode.c
fs/overlayfs/super.c
include/linux/dcache.h