diff options
author | Amir Goldstein <amir73il@gmail.com> | 2017-06-12 09:54:40 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-07-04 23:03:15 +0300 |
commit | 13cf199d0088b77ab08a9594df2e73e775317ed2 (patch) | |
tree | f07270a1879f7c58925dc3ddabdc93c16a14f43e /fs/overlayfs/ovl_entry.h | |
parent | f681eb1d5c02c9e79775e10363057d034c720efc (diff) | |
download | linux-13cf199d0088b77ab08a9594df2e73e775317ed2.tar.xz |
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>
Diffstat (limited to 'fs/overlayfs/ovl_entry.h')
-rw-r--r-- | fs/overlayfs/ovl_entry.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/overlayfs/ovl_entry.h b/fs/overlayfs/ovl_entry.h index 34bc4a9f5c61..553727df886c 100644 --- a/fs/overlayfs/ovl_entry.h +++ b/fs/overlayfs/ovl_entry.h @@ -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); +} |