summaryrefslogtreecommitdiff
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorMilosz Tanski <milosz@adfin.com>2013-08-21 21:30:27 (GMT)
committerMilosz Tanski <milosz@adfin.com>2013-09-06 16:50:11 (GMT)
commit76be778b3a4eae63ee4dcb22ff2045d3a0fe863b (patch)
treeb656adc374f4037b08a628e28ea107b6d27e03ce /fs/ceph/addr.c
parent99ccbd229cf7453206bc858e795ec1f0345ff258 (diff)
downloadlinux-fsl-qoriq-76be778b3a4eae63ee4dcb22ff2045d3a0fe863b.tar.xz
ceph: clean PgPrivate2 on returning from readpages
In some cases the ceph readapages code code bails without filling all the pages already marked by fscache. When we return back to readahead code this causes a BUG. Signed-off-by: Milosz Tanski <milosz@adfin.com>
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r--fs/ceph/addr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index 3a21a7c..1fda9cf 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -398,6 +398,8 @@ static int ceph_readpages(struct file *file, struct address_space *mapping,
BUG_ON(rc == 0);
}
out:
+ ceph_fscache_readpages_cancel(inode, page_list);
+
dout("readpages %p file %p ret %d\n", inode, file, rc);
return rc;
}