ceph: ignore wbc->range_{start,end} when write back snapshot data
authorYan, Zheng <zyan@redhat.com>
Fri, 1 Sep 2017 08:53:58 +0000 (16:53 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:58 +0000 (19:56 +0200)
commit2a2d927e35dd8dc4faf8fbc211533cf5f8840f5b
tree8acb82e8f3217c8fcf9877a606398fb65940f5b0
parent590e9d9861f5f21fbbb0266e40e6a17bc5084dd0
ceph: ignore wbc->range_{start,end} when write back snapshot data

writepages() needs to write dirty pages to OSD in strict order of
snapshot context. It must first write dirty pages associated with
the oldest snapshot context. In the write range case, dirty pages
in the specified range can be associated with newer snapc. They
are not writeable until we write all dirty pages associated with
the oldest snapc.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c