ovl: make path-type a bitmap
authorMiklos Szeredi <mszeredi@suse.cz>
Fri, 12 Dec 2014 23:59:42 +0000 (00:59 +0100)
committerMiklos Szeredi <mszeredi@suse.cz>
Fri, 12 Dec 2014 23:59:42 +0000 (00:59 +0100)
commit1afaba1ecb5299cdd0f69b5bad98b0185fe71e79
tree19b3bdd7c514de98a9131665fcb360fda3178d4e
parent49c21e1cacd74a8c83407c70ad860c994e606e25
ovl: make path-type a bitmap

OVL_PATH_PURE_UPPER -> __OVL_PATH_UPPER | __OVL_PATH_PURE
OVL_PATH_UPPER      -> __OVL_PATH_UPPER
OVL_PATH_MERGE      -> __OVL_PATH_UPPER | __OVL_PATH_MERGE
OVL_PATH_LOWER      -> 0

Multiple R/O layers will allow __OVL_PATH_MERGE without __OVL_PATH_UPPER.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/overlayfs/copy_up.c
fs/overlayfs/dir.c
fs/overlayfs/inode.c
fs/overlayfs/overlayfs.h
fs/overlayfs/readdir.c
fs/overlayfs/super.c