summaryrefslogtreecommitdiff
path: root/fs/overlayfs/ovl_entry.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2023-03-15 04:31:37 +0200
committerAmir Goldstein <amir73il@gmail.com>2023-06-19 14:01:12 +0300
commita6ff2bc0be179eea72832b5396481a08ccd22d5a (patch)
tree4b939e68c2d6eb8944c52c218451d9f7e8e15c63 /fs/overlayfs/ovl_entry.h
parentb07d5cc93e1b28df47a72c519d09d0a836043613 (diff)
ovl: use OVL_E() and OVL_E_FLAGS() accessors
Instead of open coded instances, because we are about to split the two apart. Reviewed-by: Alexander Larsson <alexl@redhat.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/ovl_entry.h')
-rw-r--r--fs/overlayfs/ovl_entry.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h
index fd11fe6d6d45..4c7312126b3b 100644
--- a/fs/overlayfs/ovl_entry.h
+++ b/fs/overlayfs/ovl_entry.h
@@ -124,6 +124,11 @@ static inline struct ovl_entry *OVL_E(struct dentry *dentry)
return (struct ovl_entry *) dentry->d_fsdata;
}
+static inline unsigned long *OVL_E_FLAGS(struct dentry *dentry)
+{
+ return &OVL_E(dentry)->flags;
+}
+
struct ovl_inode {
union {
struct ovl_dir_cache *cache; /* directory */