summaryrefslogtreecommitdiff
path: root/fs/afs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/afs')
-rw-r--r--fs/afs/file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/afs/file.c b/fs/afs/file.c
index 82897a78abc7..ba7b71fba34b 100644
--- a/fs/afs/file.c
+++ b/fs/afs/file.c
@@ -267,7 +267,9 @@ static int afs_readpage(struct file *file, struct page *page)
*/
static void afs_readpages_page_done(struct afs_call *call, struct afs_read *req)
{
+#ifdef CONFIG_AFS_FSCACHE
struct afs_vnode *vnode = call->reply;
+#endif
struct page *page = req->pages[req->index];
req->pages[req->index] = NULL;