qstr: constify instances in overlayfs
[cascardo/linux.git] / fs / overlayfs / super.c
index 7fd216a..4036132 100644 (file)
@@ -407,7 +407,8 @@ static struct ovl_entry *ovl_alloc_entry(unsigned int numlower)
 static bool ovl_dentry_remote(struct dentry *dentry)
 {
        return dentry->d_flags &
-               (DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE);
+               (DCACHE_OP_REVALIDATE | DCACHE_OP_WEAK_REVALIDATE |
+                DCACHE_OP_REAL);
 }
 
 static bool ovl_dentry_weird(struct dentry *dentry)
@@ -420,7 +421,7 @@ static bool ovl_dentry_weird(struct dentry *dentry)
 
 static inline struct dentry *ovl_lookup_real(struct super_block *ovl_sb,
                                             struct dentry *dir,
-                                            struct qstr *name)
+                                            const struct qstr *name)
 {
        const struct cred *old_cred;
        struct dentry *dentry;