qstr: constify instances in overlayfs
[cascardo/linux.git] / fs / overlayfs / super.c
index 0d40f9a..4036132 100644 (file)
@@ -16,7 +16,6 @@
 #include <linux/slab.h>
 #include <linux/parser.h>
 #include <linux/module.h>
-#include <linux/pagemap.h>
 #include <linux/sched.h>
 #include <linux/statfs.h>
 #include <linux/seq_file.h>
@@ -336,7 +335,7 @@ static struct dentry *ovl_d_real(struct dentry *dentry,
        /* Handle recursion */
        return d_real(real, inode, open_flags);
 bug:
-       WARN(1, "ovl_d_real(%pd4, %s:%lu\n): real dentry not found\n", dentry,
+       WARN(1, "ovl_d_real(%pd4, %s:%lu): real dentry not found\n", dentry,
             inode ? inode->i_sb->s_id : "NULL", inode ? inode->i_ino : 0);
        return dentry;
 }
@@ -408,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)
@@ -421,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;