projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfs: add file_path() helper
[linux-2.6-block.git]
/
drivers
/
block
/
loop.c
diff --git
a/drivers/block/loop.c
b/drivers/block/loop.c
index d7173cb1ea76c206f1fcedbc96994e45901aa322..0d8ad59413cd88119dd4ee49517f979203a839da 100644
(file)
--- a/
drivers/block/loop.c
+++ b/
drivers/block/loop.c
@@
-568,7
+568,7
@@
static ssize_t loop_attr_backing_file_show(struct loop_device *lo, char *buf)
spin_lock_irq(&lo->lo_lock);
if (lo->lo_backing_file)
- p =
d_path(&lo->lo_backing_file->f_path
, buf, PAGE_SIZE - 1);
+ p =
file_path(lo->lo_backing_file
, buf, PAGE_SIZE - 1);
spin_unlock_irq(&lo->lo_lock);
if (IS_ERR_OR_NULL(p))