From: Yan, Zheng Date: Thu, 26 May 2016 02:30:13 +0000 (+0800) Subject: ceph: set user pages dirty after direct IO read X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a22bd5ffae2d22c054c832fe0d60976ed9e4a49d;p=linux-beck.git ceph: set user pages dirty after direct IO read Signed-off-by: Yan, Zheng --- diff --git a/fs/ceph/file.c b/fs/ceph/file.c index cba5dcf49a65..ac75fa9fd858 100644 --- a/fs/ceph/file.c +++ b/fs/ceph/file.c @@ -708,7 +708,7 @@ static void ceph_aio_complete_req(struct ceph_osd_request *req) } } - ceph_put_page_vector(osd_data->pages, num_pages, false); + ceph_put_page_vector(osd_data->pages, num_pages, !aio_req->write); ceph_osdc_put_request(req); if (rc < 0) @@ -964,7 +964,7 @@ ceph_direct_read_write(struct kiocb *iocb, struct iov_iter *iter, len = ret; } - ceph_put_page_vector(pages, num_pages, false); + ceph_put_page_vector(pages, num_pages, !write); ceph_osdc_put_request(req); if (ret < 0)