ovl: Treat metacopy dentries as type OVL_PATH_MERGE
authorVivek Goyal <vgoyal@redhat.com>
Fri, 11 May 2018 15:49:32 +0000 (11:49 -0400)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 20 Jul 2018 07:56:13 +0000 (09:56 +0200)
commit0b17c28af1b8814505fd4eafd96e6e7e05bba01d
tree0fe76584baf4525ec73886444960eef66c56f9c5
parentb8a8824ca011050b590a6353067e722a24a591fb
ovl: Treat metacopy dentries as type OVL_PATH_MERGE

Right now OVL_PATH_MERGE is used only for merged directories.  But
conceptually, a metacopy dentry (backed by a lower data dentry) is a merged
entity as well.

So mark metacopy dentries as OVL_PATH_MERGE and ovl_rename() makes use of
this property later to set redirect on a metacopy file.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/util.c