ovl: fix origin verification of index dir
authorAmir Goldstein <amir73il@gmail.com>
Tue, 11 Jul 2017 12:58:36 +0000 (15:58 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 13 Jul 2017 20:06:46 +0000 (22:06 +0200)
commit961af647fc9ebcdb3e98c8f11b399ebe01169fb1
tree470a5e693a87b950eece3c82a284da0ea292620c
parentea3dad18dc5f778cfd931311a91a9315aa0065a3
ovl: fix origin verification of index dir

Commit 54fb347e836f ("ovl: verify index dir matches upper dir")
introduced a new ovl_fh flag OVL_FH_FLAG_PATH_UPPER to indicate
an upper file handle, but forgot to add the flag to the mask of
valid flags, so index dir origin verification always discards
existing origin and stores a new one.

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