summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2017-07-04 22:03:16 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-07-04 22:03:16 +0200
commit04a01ac7ed3c5cd718713ef6341249a143c96b10 (patch)
tree737c6c92f91dab8c7dba5b43bab4af82cfd68462 /fs/overlayfs/super.c
parentovl: use ovl_inode mutex to synchronize concurrent copy up (diff)
downloadlinux-04a01ac7ed3c5cd718713ef6341249a143c96b10.tar.xz
linux-04a01ac7ed3c5cd718713ef6341249a143c96b10.zip
ovl: move cache and version to ovl_inode
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r--fs/overlayfs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index b0d539af1fad..e0a51ea773ec 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -169,7 +169,9 @@ static struct inode *ovl_alloc_inode(struct super_block *sb)
{
struct ovl_inode *oi = kmem_cache_alloc(ovl_inode_cachep, GFP_KERNEL);
+ oi->cache = NULL;
oi->redirect = NULL;
+ oi->version = 0;
oi->flags = 0;
oi->__upperdentry = NULL;
oi->lower = NULL;