diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-12-12 18:59:42 -0500 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-12-12 18:59:42 -0500 |
commit | 1afaba1ecb5299cdd0f69b5bad98b0185fe71e79 (patch) | |
tree | 19b3bdd7c514de98a9131665fcb360fda3178d4e /fs/overlayfs/copy_up.c | |
parent | 49c21e1cacd74a8c83407c70ad860c994e606e25 (diff) |
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>
Diffstat (limited to 'fs/overlayfs/copy_up.c')
-rw-r--r-- | fs/overlayfs/copy_up.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/overlayfs/copy_up.c b/fs/overlayfs/copy_up.c index ea10a8719107..a5bfd60f4f6f 100644 --- a/fs/overlayfs/copy_up.c +++ b/fs/overlayfs/copy_up.c | |||
@@ -385,7 +385,7 @@ int ovl_copy_up(struct dentry *dentry) | |||
385 | struct kstat stat; | 385 | struct kstat stat; |
386 | enum ovl_path_type type = ovl_path_type(dentry); | 386 | enum ovl_path_type type = ovl_path_type(dentry); |
387 | 387 | ||
388 | if (type != OVL_PATH_LOWER) | 388 | if (OVL_TYPE_UPPER(type)) |
389 | break; | 389 | break; |
390 | 390 | ||
391 | next = dget(dentry); | 391 | next = dget(dentry); |
@@ -394,7 +394,7 @@ int ovl_copy_up(struct dentry *dentry) | |||
394 | parent = dget_parent(next); | 394 | parent = dget_parent(next); |
395 | 395 | ||
396 | type = ovl_path_type(parent); | 396 | type = ovl_path_type(parent); |
397 | if (type != OVL_PATH_LOWER) | 397 | if (OVL_TYPE_UPPER(type)) |
398 | break; | 398 | break; |
399 | 399 | ||
400 | dput(next); | 400 | dput(next); |