int followlink, char **pathp)
{
struct dentry *dp = NULL;
- struct vfsmnt *mnt = NULL;
+ struct vfsmount *mnt = NULL;
char *tname, *path;
int code;
return -PTR_ERR(tname);
code = osi_lookupname_internal(tname, followlink, &mnt, &dp);
if (!code) {
+#if defined(D_PATH_TAKES_STRUCT_PATH)
+ struct path p = { mnt, dp };
+ path = d_path(&p, buf, buflen);
+#else
path = d_path(dp, mnt, buf, buflen);
+#endif
if (IS_ERR(path)) {
code = -PTR_ERR(path);