mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
ceph: set user pages dirty after direct IO read
Signed-off-by: Yan, Zheng <zyan@redhat.com>
This commit is contained in:
parent
779fe0fb8e
commit
a22bd5ffae
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user