ovl: allocate an ovl_inode struct
We need some more space to store overlay inode data in memory, so allocate overlay inodes from a slab of struct ovl_inode. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:

committed by
Miklos Szeredi

parent
f681eb1d5c
commit
13cf199d00
@@ -58,3 +58,12 @@ static inline struct dentry *ovl_upperdentry_dereference(struct ovl_entry *oe)
|
||||
{
|
||||
return lockless_dereference(oe->__upperdentry);
|
||||
}
|
||||
|
||||
struct ovl_inode {
|
||||
struct inode vfs_inode;
|
||||
};
|
||||
|
||||
static inline struct ovl_inode *OVL_I(struct inode *inode)
|
||||
{
|
||||
return container_of(inode, struct ovl_inode, vfs_inode);
|
||||
}
|
||||
|
Reference in New Issue
Block a user