summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs/super.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-12-16 11:02:55 +0100
committerMiklos Szeredi <mszeredi@redhat.com>2016-12-16 11:02:55 +0100
commit38e813db61c3951ef76d071ca7d2f46c2e939b80 (patch)
tree9cd47c67b93e62a2842c975fe94b5e07f8a5b2f6 /fs/overlayfs/super.c
parent2aff4534b6c48c465c2ba3bca310646652318e16 (diff)
downloadlinux-38e813db61c3951ef76d071ca7d2f46c2e939b80.tar.gz
linux-38e813db61c3951ef76d071ca7d2f46c2e939b80.tar.bz2
linux-38e813db61c3951ef76d071ca7d2f46c2e939b80.zip
ovl: get rid of PURE type
The remainging uses of __OVL_PATH_PURE can be replaced by ovl_dentry_is_opaque(). Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs/super.c')
-rw-r--r--fs/overlayfs/super.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index b58710b36157..c0463fb80f41 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -80,12 +80,10 @@ enum ovl_path_type ovl_path_type(struct dentry *dentry)
/*
* Non-dir dentry can hold lower dentry from previous
- * location. Its purity depends only on opaque flag.
+ * location.
*/
if (oe->numlower && S_ISDIR(dentry->d_inode->i_mode))
type |= __OVL_PATH_MERGE;
- else if (!oe->opaque)
- type |= __OVL_PATH_PURE;
} else {
if (oe->numlower > 1)
type |= __OVL_PATH_MERGE;