vfs: add file_path() helper

Turn
	d_path(&file->f_path, ...);
into
	file_path(file, ...);

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Miklos Szeredi
2015-06-19 10:29:13 +02:00
committed by Al Viro
orang tua 4bacc9c923
melakukan 9bf39ab2ad
16 mengubah file dengan 25 tambahan dan 21 penghapusan

Melihat 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),