Message ID | CALYGNiODnRZ5HMwdrFamLdhG+NE9y0G2L_ttyEZZwSijMZ65_A@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/fs/overlayfs/super.c +++ b/fs/overlayfs/super.c @@ -76,12 +76,10 @@ enum ovl_path_type ovl_path_type(struct dentry *dentry) if (oe->__upperdentry) { type = __OVL_PATH_UPPER; - if (oe->numlower) { - if (S_ISDIR(dentry->d_inode->i_mode)) - type |= __OVL_PATH_MERGE; - } else if (!oe->opaque) { + if (S_ISDIR(dentry->d_inode->i_mode) && oe->numlower) + type |= __OVL_PATH_MERGE; + else if (!oe->opaque) type |= __OVL_PATH_PURE; - } } else { if (oe->numlower > 1) type |= __OVL_PATH_MERGE;