diff options
author | Christoph Hellwig <hch@lst.de> | 2008-05-23 16:04:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-24 12:56:09 -0400 |
commit | 6bcfd601861cce45ca73ac1d714f1286b6b3f0d4 (patch) | |
tree | 175173d057e10dd006d6dbd033395977aff55dd9 /drivers/md/md.c | |
parent | 03de250a269bfa8e6a9e6ccb4a1dbce19dae8a61 (diff) |
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.c | 4 |
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) | |||
3987 | if (!buf) | 3987 | if (!buf) |
3988 | goto out; | 3988 | goto out; |
3989 | 3989 | ||
3990 | ptr = file_path(mddev->bitmap->file, buf, sizeof(file->pathname)); | 3990 | ptr = d_path(&mddev->bitmap->file->f_path, buf, sizeof(file->pathname)); |
3991 | if (!ptr) | 3991 | if (IS_ERR(ptr)) |
3992 | goto out; | 3992 | goto out; |
3993 | 3993 | ||
3994 | strcpy(file->pathname, ptr); | 3994 | strcpy(file->pathname, ptr); |