From 09d8b586731bf589655c2ac971532c14cf272b63 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 4 Jul 2017 22:03:16 +0200 Subject: ovl: move __upperdentry to ovl_inode Signed-off-by: Miklos Szeredi --- fs/overlayfs/ovl_entry.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'fs/overlayfs/ovl_entry.h') diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h index b8c213891e84..ddd937490f0d 100644 --- a/fs/overlayfs/ovl_entry.h +++ b/fs/overlayfs/ovl_entry.h @@ -36,7 +36,6 @@ struct ovl_fs { /* private information held for every overlayfs dentry */ struct ovl_entry { - struct dentry *__upperdentry; struct ovl_dir_cache *cache; union { struct { @@ -54,14 +53,9 @@ struct ovl_entry { struct ovl_entry *ovl_alloc_entry(unsigned int numlower); -static inline struct dentry *ovl_upperdentry_dereference(struct ovl_entry *oe) -{ - return lockless_dereference(oe->__upperdentry); -} - struct ovl_inode { struct inode vfs_inode; - struct inode *upper; + struct dentry *__upperdentry; struct inode *lower; }; @@ -69,3 +63,8 @@ static inline struct ovl_inode *OVL_I(struct inode *inode) { return container_of(inode, struct ovl_inode, vfs_inode); } + +static inline struct dentry *ovl_upperdentry_dereference(struct ovl_inode *oi) +{ + return lockless_dereference(oi->__upperdentry); +} -- cgit v1.2.3