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. Signed-off-by: Amir Goldstein <amir73il@xxxxxxxxx> --- fs/overlayfs/dir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/overlayfs/dir.c b/fs/overlayfs/dir.c index ef533198be45..70af6b470420 100644 --- a/fs/overlayfs/dir.c +++ b/fs/overlayfs/dir.c @@ -1075,6 +1075,7 @@ static int ovl_rename(struct inode *olddir, struct dentry *old, drop_nlink(d_inode(new)); } + ovl_dentry_version_inc(old->d_parent, ovl_type_origin(old)); ovl_dentry_version_inc(old->d_parent, !overwrite && ovl_type_origin(new)); ovl_dentry_version_inc(new->d_parent, ovl_type_origin(old)); -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html