d_path: Make d_path() use a struct path
d_path() is used on a <dentry,vfsmount> pair. Lets use a struct path to reflect this. [akpm@linux-foundation.org: fix build in mm/memory.c] Signed-off-by: Jan Blunck <jblunck@suse.de> Acked-by: Bryan Wu <bryan.wu@analog.com> Acked-by: Christoph Hellwig <hch@infradead.org> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: "J. Bruce Fields" <bfields@fieldses.org> Cc: Neil Brown <neilb@suse.de> Cc: Michael Halcrow <mhalcrow@us.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
c32c2f63a9
commit
cf28b4863f
@@ -345,7 +345,7 @@ static void svc_export_request(struct cache_detail *cd,
|
||||
char *pth;
|
||||
|
||||
qword_add(bpp, blen, exp->ex_client->name);
|
||||
pth = d_path(exp->ex_path.dentry, exp->ex_path.mnt, *bpp, *blen);
|
||||
pth = d_path(&exp->ex_path, *bpp, *blen);
|
||||
if (IS_ERR(pth)) {
|
||||
/* is this correct? */
|
||||
(*bpp)[0] = '\n';
|
||||
|
Reference in New Issue
Block a user