ovl: mark parent impure on ovl_link()
authorAmir Goldstein <amir73il@gmail.com>
Tue, 11 Jul 2017 12:58:34 +0000 (15:58 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 13 Jul 2017 20:06:45 +0000 (22:06 +0200)
commitea3dad18dc5f778cfd931311a91a9315aa0065a3
treed2a1a3e51e877eb9c0ad249e5dcf4c17a33f01a5
parent8fc646b44385ff0a9853f6590497e43049eeb311
ovl: mark parent impure on ovl_link()

When linking a file with copy up origin into a new parent, mark the
new parent dir "impure".

Fixes: ee1d6d37b6b8 ("ovl: mark upper dir with type origin entries "impure"")
Cc: <stable@vger.kernel.org> # v4.12
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/dir.c