commit | 590e9d9861f5f21fbbb0266e40e6a17bc5084dd0 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Sun Sep 03 00:04:31 2017 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Wed Sep 06 19:56:57 2017 +0200 |
tree | 57665da237483343bc23163aedfc23123e3820e0 | |
parent | 0e5ecac7168366500af1fa9a70fa9ce573f891f3 [diff] |
ceph: fix "range cyclic" mode writepages In range cyclic mode, writepages() should first write dirty pages in range [writeback_index, (pgoff_t)-1], then write pages in range [0, writeback_index -1]. Besides, if writepages() encounters a page that beyond EOF, it should restart from the beginning. Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>