Don't pass inode to ->d_hash() and ->d_compare()
[firefly-linux-kernel-4.4.55.git] / fs / gfs2 / dentry.c
index 4fddb3c22d258ca6da35b4e743ec80fc20ee2e08..f2448ab2aac54d99306140a192afa1c1d9e3dc46 100644 (file)
@@ -109,8 +109,7 @@ fail:
        return 0;
 }
 
-static int gfs2_dhash(const struct dentry *dentry, const struct inode *inode,
-               struct qstr *str)
+static int gfs2_dhash(const struct dentry *dentry, struct qstr *str)
 {
        str->hash = gfs2_disk_hash(str->name, str->len);
        return 0;