ovl: move cache and version to ovl_inode

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
Miklos Szeredi
2017-07-04 22:03:16 +02:00
parent a015dafcaf
commit 04a01ac7ed
3 changed files with 13 additions and 17 deletions

View File

@@ -35,12 +35,8 @@ struct ovl_fs {
/* private information held for every overlayfs dentry */
struct ovl_entry {
struct ovl_dir_cache *cache;
union {
struct {
u64 version;
bool opaque;
};
bool opaque;
struct rcu_head rcu;
};
unsigned numlower;
@@ -50,7 +46,9 @@ struct ovl_entry {
struct ovl_entry *ovl_alloc_entry(unsigned int numlower);
struct ovl_inode {
struct ovl_dir_cache *cache;
const char *redirect;
u64 version;
unsigned long flags;
struct inode vfs_inode;
struct dentry *__upperdentry;