diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2017-07-04 22:03:16 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2017-07-04 22:03:16 +0200 |
commit | e6d2ebddbc5205635a021a910f2f0e93bc2aa534 (patch) | |
tree | 93bf64fc3ce1e310cdb43b61be9bc51fbe59bb0d /fs/overlayfs/super.c | |
parent | 13cf199d0088b77ab08a9594df2e73e775317ed2 (diff) | |
download | op-kernel-dev-e6d2ebddbc5205635a021a910f2f0e93bc2aa534.zip op-kernel-dev-e6d2ebddbc5205635a021a910f2f0e93bc2aa534.tar.gz |
ovl: simplify getting inode
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r-- | fs/overlayfs/super.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index ed91601..ec1b408 100644 --- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -757,7 +757,6 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent) struct path upperpath = { }; struct path workpath = { }; struct dentry *root_dentry; - struct inode *realinode; struct ovl_entry *oe; struct ovl_fs *ufs; struct path *stack = NULL; @@ -1009,9 +1008,7 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent) root_dentry->d_fsdata = oe; - realinode = d_inode(ovl_dentry_real(root_dentry)); - ovl_inode_init(d_inode(root_dentry), realinode, !!upperpath.dentry); - ovl_copyattr(realinode, d_inode(root_dentry)); + ovl_inode_init(d_inode(root_dentry), root_dentry); sb->s_root = root_dentry; |