vfs: add file_path() helper
[linux-block.git] / mm / memory.c
index 22e037e3364e0f49dcdc1de812181f54755bbbac..28c10da1efbca0d7ac0af6189a7c0c2e0789e832 100644 (file)
@@ -3724,7 +3724,7 @@ void print_vma_addr(char *prefix, unsigned long ip)
                if (buf) {
                        char *p;
 
-                       p = d_path(&f->f_path, buf, PAGE_SIZE);
+                       p = file_path(f, buf, PAGE_SIZE);
                        if (IS_ERR(p))
                                p = "?";
                        printk("%s%s[%lx+%lx]", prefix, kbasename(p),