Hi, This is V2 of the patches. Took care of few suggestions from Amir. This series tries to implement Amir's suggestion of initializing OVL_UPPERDATA in callers of ovl_get_inode() and move checking of metacopy xattr out of ovl_get_inode(). It also has to patches to cleanup metacopy logic a bit and make it little more readable and understandable in ovl_lookup(). yangerkun, can you please make sure if this patch series fixes the xfstest issue you were facing once in a while. Vivek Goyal (3): overlayfs: Simplify setting of origin for index lookup overlayfs: ovl_lookup(): Use only uppermetacopy state overlayfs: Initialize OVL_UPPERDATA in ovl_lookup() fs/overlayfs/dir.c | 2 + fs/overlayfs/inode.c | 11 +----- fs/overlayfs/namei.c | 89 ++++++++++++++++++++++++-------------------- 3 files changed, 51 insertions(+), 51 deletions(-) -- 2.25.4