X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=fs%2Fafs%2Fmntpt.c;h=8f74e845082659fd1efc291f7f37f6f1026ef274;hb=9cdf083f981b8d37b3212400a359368661385099;hp=b5cf9e1205ad316c01bfdb5a34abdc81bc752dfe;hpb=6edad161cd4dfe1df772e7a74ab63cab53b5e8c1;p=powerpc.git diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index b5cf9e1205..8f74e84508 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include "super.h" #include "cell.h" #include "volume.h" @@ -136,11 +136,11 @@ static int afs_mntpt_open(struct inode *inode, struct file *file) { kenter("%p,%p{%p{%s},%s}", inode, file, - file->f_dentry->d_parent, - file->f_dentry->d_parent ? - file->f_dentry->d_parent->d_name.name : + file->f_path.dentry->d_parent, + file->f_path.dentry->d_parent ? + file->f_path.dentry->d_parent->d_name.name : (const unsigned char *) "", - file->f_dentry->d_name.name); + file->f_path.dentry->d_name.name); return -EREMOTE; } /* end afs_mntpt_open() */ @@ -203,7 +203,7 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt) /* try and do the mount */ kdebug("--- attempting mount %s -o %s ---", devname, options); - mnt = do_kern_mount("afs", 0, devname, options); + mnt = vfs_kern_mount(&afs_fs_type, 0, devname, options); kdebug("--- mount result %p ---", mnt); free_page((unsigned long) devname);