summaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorChristoph Hellwig2008-05-23 22:04:34 +0200
committerLinus Torvalds2008-05-24 18:56:09 +0200
commit6bcfd601861cce45ca73ac1d714f1286b6b3f0d4 (patch)
tree175173d057e10dd006d6dbd033395977aff55dd9 /drivers/md/md.c
parentmd: proper extern for mdp_major (diff)
downloadkernel-qcow2-linux-6bcfd601861cce45ca73ac1d714f1286b6b3f0d4.tar.gz
kernel-qcow2-linux-6bcfd601861cce45ca73ac1d714f1286b6b3f0d4.tar.xz
kernel-qcow2-linux-6bcfd601861cce45ca73ac1d714f1286b6b3f0d4.zip
md: kill file_path wrapper
Kill the trivial and rather pointless file_path wrapper around d_path. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 83eb78b00137..d31aa6f33a6a 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -3987,8 +3987,8 @@ static int get_bitmap_file(mddev_t * mddev, void __user * arg)
if (!buf)
goto out;
- ptr = file_path(mddev->bitmap->file, buf, sizeof(file->pathname));
- if (!ptr)
+ ptr = d_path(&mddev->bitmap->file->f_path, buf, sizeof(file->pathname));
+ if (IS_ERR(ptr))
goto out;
strcpy(file->pathname, ptr);