summaryrefslogtreecommitdiffstats
path: root/fs/isofs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2016-07-31 16:37:25 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-07-31 16:37:25 -0400
commit6fa67e707559303e086303aeecc9e8b91ef497d5 (patch)
treee5d034b0e9c533bd4e14fc0755432b50d69da2f2 /fs/isofs
parentd3fe19852e96aabe3084c82ec2f3fb4918ab6d1e (diff)
get rid of 'parent' argument of ->d_compare()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/isofs')
-rw-r--r--fs/isofs/inode.c15
-rw-r--r--fs/isofs/namei.c2
2 files changed, 7 insertions, 10 deletions
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c
index 761fade7680f..ad0c745ebad7 100644
--- a/fs/isofs/inode.c
+++ b/fs/isofs/inode.c
@@ -29,18 +29,15 @@
29#define BEQUIET 29#define BEQUIET
30 30
31static int isofs_hashi(const struct dentry *parent, struct qstr *qstr); 31static int isofs_hashi(const struct dentry *parent, struct qstr *qstr);
32static int isofs_dentry_cmpi(const struct dentry *parent, 32static int isofs_dentry_cmpi(const struct dentry *dentry,
33 const struct dentry *dentry,
34 unsigned int len, const char *str, const struct qstr *name); 33 unsigned int len, const char *str, const struct qstr *name);
35 34
36#ifdef CONFIG_JOLIET 35#ifdef CONFIG_JOLIET
37static int isofs_hashi_ms(const struct dentry *parent, struct qstr *qstr); 36static int isofs_hashi_ms(const struct dentry *parent, struct qstr *qstr);
38static int isofs_hash_ms(const struct dentry *parent, struct qstr *qstr); 37static int isofs_hash_ms(const struct dentry *parent, struct qstr *qstr);
39static int isofs_dentry_cmpi_ms(const struct dentry *parent, 38static int isofs_dentry_cmpi_ms(const struct dentry *dentry,
40 const struct dentry *dentry,
41 unsigned int len, const char *str, const struct qstr *name); 39 unsigned int len, const char *str, const struct qstr *name);
42static int isofs_dentry_cmp_ms(const struct dentry *parent, 40static int isofs_dentry_cmp_ms(const struct dentry *dentry,
43 const struct dentry *dentry,
44 unsigned int len, const char *str, const struct qstr *name); 41 unsigned int len, const char *str, const struct qstr *name);
45#endif 42#endif
46 43
@@ -235,7 +232,7 @@ isofs_hashi(const struct dentry *dentry, struct qstr *qstr)
235} 232}
236 233
237static int 234static int
238isofs_dentry_cmpi(const struct dentry *parent, const struct dentry *dentry, 235isofs_dentry_cmpi(const struct dentry *dentry,
239 unsigned int len, const char *str, const struct qstr *name) 236 unsigned int len, const char *str, const struct qstr *name)
240{ 237{
241 return isofs_dentry_cmp_common(len, str, name, 0, 1); 238 return isofs_dentry_cmp_common(len, str, name, 0, 1);
@@ -276,14 +273,14 @@ isofs_hashi_ms(const struct dentry *dentry, struct qstr *qstr)
276} 273}
277 274
278static int 275static int
279isofs_dentry_cmp_ms(const struct dentry *parent, const struct dentry *dentry, 276isofs_dentry_cmp_ms(const struct dentry *dentry,
280 unsigned int len, const char *str, const struct qstr *name) 277 unsigned int len, const char *str, const struct qstr *name)
281{ 278{
282 return isofs_dentry_cmp_common(len, str, name, 1, 0); 279 return isofs_dentry_cmp_common(len, str, name, 1, 0);
283} 280}
284 281
285static int 282static int
286isofs_dentry_cmpi_ms(const struct dentry *parent, const struct dentry *dentry, 283isofs_dentry_cmpi_ms(const struct dentry *dentry,
287 unsigned int len, const char *str, const struct qstr *name) 284 unsigned int len, const char *str, const struct qstr *name)
288{ 285{
289 return isofs_dentry_cmp_common(len, str, name, 1, 1); 286 return isofs_dentry_cmp_common(len, str, name, 1, 1);
diff --git a/fs/isofs/namei.c b/fs/isofs/namei.c
index 7b543e6b6526..aee592767f1d 100644
--- a/fs/isofs/namei.c
+++ b/fs/isofs/namei.c
@@ -22,7 +22,7 @@ isofs_cmp(struct dentry *dentry, const char *compare, int dlen)
22 qstr.len = dlen; 22 qstr.len = dlen;
23 if (likely(!dentry->d_op)) 23 if (likely(!dentry->d_op))
24 return dentry->d_name.len != dlen || memcmp(dentry->d_name.name, compare, dlen); 24 return dentry->d_name.len != dlen || memcmp(dentry->d_name.name, compare, dlen);
25 return dentry->d_op->d_compare(NULL, NULL, dentry->d_name.len, dentry->d_name.name, &qstr); 25 return dentry->d_op->d_compare(NULL, dentry->d_name.len, dentry->d_name.name, &qstr);
26} 26}
27 27
28/* 28/*