diff options
author | Mel Gorman <mgorman@suse.de> | 2012-07-31 19:45:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-31 21:42:47 -0400 |
commit | d56b4ddf7781ef8dd050542781cc7f55673af002 (patch) | |
tree | afda2689b4944e5dc7fd6d4a2b31f901080ca977 /fs/nfs/pagelist.c | |
parent | 5a178119b0fbe37f7dfb602b37df9cc4b1dc9d71 (diff) |
nfs: teach the NFS client how to treat PG_swapcache pages
Replace all relevant occurences of page->index and page->mapping in the
NFS client with the new page_file_index() and page_file_mapping()
functions.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mel Gorman <mgorman@suse.de>
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Eric B Munson <emunson@mgebm.net>
Cc: Eric Paris <eparis@redhat.com>
Cc: James Morris <jmorris@namei.org>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Mike Christie <michaelc@cs.wisc.edu>
Cc: Neil Brown <neilb@suse.de>
Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Xiaotian Feng <dfeng@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nfs/pagelist.c')
-rw-r--r-- | fs/nfs/pagelist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index aed913c833f4..9ef8b3cf7fc7 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c | |||
@@ -117,7 +117,7 @@ nfs_create_request(struct nfs_open_context *ctx, struct inode *inode, | |||
117 | * long write-back delay. This will be adjusted in | 117 | * long write-back delay. This will be adjusted in |
118 | * update_nfs_request below if the region is not locked. */ | 118 | * update_nfs_request below if the region is not locked. */ |
119 | req->wb_page = page; | 119 | req->wb_page = page; |
120 | req->wb_index = page->index; | 120 | req->wb_index = page_file_index(page); |
121 | page_cache_get(page); | 121 | page_cache_get(page); |
122 | req->wb_offset = offset; | 122 | req->wb_offset = offset; |
123 | req->wb_pgbase = offset; | 123 | req->wb_pgbase = offset; |