diff options
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index a256d770ea18..ae4b0fd9033f 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -397,15 +397,16 @@ static int proc_sys_delete(const struct dentry *dentry) | |||
397 | return !!PROC_I(dentry->d_inode)->sysctl->unregistering; | 397 | return !!PROC_I(dentry->d_inode)->sysctl->unregistering; |
398 | } | 398 | } |
399 | 399 | ||
400 | static int proc_sys_compare(struct dentry *dir, struct qstr *qstr, | 400 | static int proc_sys_compare(const struct dentry *parent, |
401 | struct qstr *name) | 401 | const struct inode *pinode, |
402 | const struct dentry *dentry, const struct inode *inode, | ||
403 | unsigned int len, const char *str, const struct qstr *name) | ||
402 | { | 404 | { |
403 | struct dentry *dentry = container_of(qstr, struct dentry, d_name); | 405 | if (name->len != len) |
404 | if (qstr->len != name->len) | ||
405 | return 1; | 406 | return 1; |
406 | if (memcmp(qstr->name, name->name, name->len)) | 407 | if (memcmp(name->name, str, len)) |
407 | return 1; | 408 | return 1; |
408 | return !sysctl_is_seen(PROC_I(dentry->d_inode)->sysctl); | 409 | return !sysctl_is_seen(PROC_I(inode)->sysctl); |
409 | } | 410 | } |
410 | 411 | ||
411 | static const struct dentry_operations proc_sys_dentry_operations = { | 412 | static const struct dentry_operations proc_sys_dentry_operations = { |