diff options
Diffstat (limited to 'fs/nfs/read.c')
-rw-r--r-- | fs/nfs/read.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/read.c b/fs/nfs/read.c index 6267b873bbcb..7cb020782687 100644 --- a/fs/nfs/read.c +++ b/fs/nfs/read.c | |||
@@ -522,11 +522,11 @@ static const struct rpc_call_ops nfs_read_common_ops = { | |||
522 | int nfs_readpage(struct file *file, struct page *page) | 522 | int nfs_readpage(struct file *file, struct page *page) |
523 | { | 523 | { |
524 | struct nfs_open_context *ctx; | 524 | struct nfs_open_context *ctx; |
525 | struct inode *inode = page->mapping->host; | 525 | struct inode *inode = page_file_mapping(page)->host; |
526 | int error; | 526 | int error; |
527 | 527 | ||
528 | dprintk("NFS: nfs_readpage (%p %ld@%lu)\n", | 528 | dprintk("NFS: nfs_readpage (%p %ld@%lu)\n", |
529 | page, PAGE_CACHE_SIZE, page->index); | 529 | page, PAGE_CACHE_SIZE, page_file_index(page)); |
530 | nfs_inc_stats(inode, NFSIOS_VFSREADPAGE); | 530 | nfs_inc_stats(inode, NFSIOS_VFSREADPAGE); |
531 | nfs_add_stats(inode, NFSIOS_READPAGES, 1); | 531 | nfs_add_stats(inode, NFSIOS_READPAGES, 1); |
532 | 532 | ||
@@ -580,7 +580,7 @@ static int | |||
580 | readpage_async_filler(void *data, struct page *page) | 580 | readpage_async_filler(void *data, struct page *page) |
581 | { | 581 | { |
582 | struct nfs_readdesc *desc = (struct nfs_readdesc *)data; | 582 | struct nfs_readdesc *desc = (struct nfs_readdesc *)data; |
583 | struct inode *inode = page->mapping->host; | 583 | struct inode *inode = page_file_mapping(page)->host; |
584 | struct nfs_page *new; | 584 | struct nfs_page *new; |
585 | unsigned int len; | 585 | unsigned int len; |
586 | int error; | 586 | int error; |