diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-09-05 12:53:11 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-09-05 12:53:11 +0200 |
commit | cd91304e7190b4c4802f8e413ab2214b233e0260 (patch) | |
tree | 66a616319703171a07055fed8f6db52cd3f14c5a /include | |
parent | vfs: add flags to d_real() (diff) | |
download | linux-cd91304e7190b4c4802f8e413ab2214b233e0260.tar.xz linux-cd91304e7190b4c4802f8e413ab2214b233e0260.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/dcache.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/dcache.h b/include/linux/dcache.h index fd0721e520f4..ed1a7cf6923a 100644 --- a/include/linux/dcache.h +++ b/include/linux/dcache.h @@ -562,6 +562,9 @@ static inline struct dentry *d_backing_dentry(struct dentry *upper) return upper; } +/* d_real() flags */ +#define D_REAL_UPPER 0x2 /* return upper dentry or NULL if non-upper */ + /** * d_real - Return the real dentry * @dentry: the dentry to query |