mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 06:32:08 +00:00
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>
This commit is contained in:
parent
495e642939
commit
cd91304e71
3 changed files with 23 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue