aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_counter.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/perf_counter.c')
-rw-r--r--kernel/perf_counter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index 7efb7ebaaae0..7f9521c3c01b 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -2116,7 +2116,7 @@ static void perf_counter_mmap_event(struct perf_mmap_event *mmap_event)
2116 name = strncpy(tmp, "//enomem", sizeof(tmp)); 2116 name = strncpy(tmp, "//enomem", sizeof(tmp));
2117 goto got_name; 2117 goto got_name;
2118 } 2118 }
2119 name = dentry_path(file->f_dentry, buf, PATH_MAX); 2119 name = d_path(&file->f_path, buf, PATH_MAX);
2120 if (IS_ERR(name)) { 2120 if (IS_ERR(name)) {
2121 name = strncpy(tmp, "//toolong", sizeof(tmp)); 2121 name = strncpy(tmp, "//toolong", sizeof(tmp));
2122 goto got_name; 2122 goto got_name;