ovl: simplify i_ino initialization
authorAmir Goldstein <amir73il@gmail.com>
Tue, 19 Nov 2019 13:31:46 +0000 (15:31 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 17 Mar 2020 14:04:22 +0000 (15:04 +0100)
commit62c832ed4e1b67cc65d909005aae5ce7031a2b38
treef9a7a2103b79c4068be7a3f878d1f8d264d40a98
parent2effc5c25d55b92b89303292128540618f182671
ovl: simplify i_ino initialization

Move i_ino initialization to ovl_inode_init() to avoid the dance of setting
i_ino in ovl_fill_inode() sometimes on the first call and sometimes on the
seconds call.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/inode.c
fs/overlayfs/overlayfs.h
fs/overlayfs/super.c
fs/overlayfs/util.c