]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/overlayfs/dir.c
KVM: arm64: vgic-v3: Add ICV_IAR1_EL1 handler
[mirror_ubuntu-zesty-kernel.git] / fs / overlayfs / dir.c
index 16e06dd894575900f0043f417c5bf6227b690cf9..2e1f16d22c16cd15067bb571e178876c13273c75 100644 (file)
@@ -209,7 +209,7 @@ static int ovl_create_upper(struct dentry *dentry, struct inode *inode,
        if (err)
                goto out_dput;
 
-       if (ovl_type_merge(dentry->d_parent)) {
+       if (ovl_type_merge(dentry->d_parent) && d_is_dir(newdentry)) {
                /* Setting opaque here is just an optimization, allow to fail */
                ovl_set_opaque(dentry, newdentry);
        }