ovl: update cache version of impure parent on rename
authorAmir Goldstein <amir73il@gmail.com>
Wed, 1 Nov 2017 15:33:13 +0000 (17:33 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 9 Nov 2017 09:23:27 +0000 (10:23 +0100)
commitf30536f0f955d9d3eb5a7e32033af4e3649de173
tree4eef3f04a4dec1b51ca66f255eb0d8aae4f071a6
parenta0c5ad307ac09fa1c73b57bfd94f4c3fd6ba92d8
ovl: update cache version of impure parent on rename

ovl_rename() updates dir cache version for impure old parent if an entry
with copy up origin is moved into old parent, but it did not update
cache version if the entry moved out of old parent has a copy up origin.

[SzM] Same for new dir: we updated the version if an entry with origin was
moved in, but not if an entry with origin was moved out.

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