]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/9p/vfs_addr.c
Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus
[mv-sheeva.git] / fs / 9p / vfs_addr.c
index efda46fb64d9e5a0bacaa14ead4f0414e04b07f6..cc24abf232d5818c375836b744759916b88f24ac 100644 (file)
@@ -31,7 +31,6 @@
 #include <linux/string.h>
 #include <linux/smp_lock.h>
 #include <linux/inet.h>
-#include <linux/version.h>
 #include <linux/pagemap.h>
 #include <linux/idr.h>
 
@@ -55,7 +54,7 @@ static int v9fs_vfs_readpage(struct file *filp, struct page *page)
        int retval = -EIO;
        loff_t offset = page_offset(page);
        int count = PAGE_CACHE_SIZE;
-       struct inode *inode = filp->f_dentry->d_inode;
+       struct inode *inode = filp->f_path.dentry->d_inode;
        struct v9fs_session_info *v9ses = v9fs_inode2v9ses(inode);
        int rsize = v9ses->maxdata - V9FS_IOHDRSZ;
        struct v9fs_fid *v9f = filp->private_data;
@@ -103,6 +102,6 @@ UnmapAndUnlock:
        return retval;
 }
 
-struct address_space_operations v9fs_addr_operations = {
+const struct address_space_operations v9fs_addr_operations = {
       .readpage = v9fs_vfs_readpage,
 };