X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Fproc%2Finternal.h;h=a38408a1dd84b577bbf6ddafeb6ae49d78a2a235;hb=dbcdb504417ae108a20454ef89776a614b948571;hp=3ab6d14e71c544753e0558fd78022a63200ea644;hpb=40e9963e622cf28ecef258e3dddb04457b65681c;p=cascardo%2Flinux.git diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 3ab6d14e71c5..a38408a1dd84 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -112,10 +112,10 @@ static inline int task_dumpable(struct task_struct *task) return 0; } -static inline unsigned name_to_int(struct dentry *dentry) +static inline unsigned name_to_int(const struct qstr *qstr) { - const char *name = dentry->d_name.name; - int len = dentry->d_name.len; + const char *name = qstr->name; + int len = qstr->len; unsigned n = 0; if (len > 1 && *name == '0')