X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=fs%2Fafs%2Fmntpt.c;h=7b6dc03caf44877962a71032bdada1b664f46086;hb=d59bf96cdde5b874a57bfd1425faa45da915d0b7;hp=31ee06590de549d833be410c742da32240187d22;hpb=b2382b363df828f25e35ed8b70a3da33b29b2a64;p=linux-2.6-omap-h63xx.git diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index 31ee06590de..7b6dc03caf4 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c @@ -32,7 +32,7 @@ static struct dentry *afs_mntpt_lookup(struct inode *dir, static int afs_mntpt_open(struct inode *inode, struct file *file); static void *afs_mntpt_follow_link(struct dentry *dentry, struct nameidata *nd); -struct file_operations afs_mntpt_file_operations = { +const struct file_operations afs_mntpt_file_operations = { .open = afs_mntpt_open, }; @@ -210,7 +210,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);