ceph: optimize pagevec iterating in ceph_writepages_start()
authorYan, Zheng <zyan@redhat.com>
Thu, 31 Aug 2017 08:55:48 +0000 (16:55 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 6 Sep 2017 17:56:56 +0000 (19:56 +0200)
commit0713e5f24b7deb88579dc312cf818b1a0809f02e
tree3f6ac060be135724eba021fdd5de551fe1306f2e
parent05455e1177f76849e0a6450e8710dcb2c361f337
ceph: optimize pagevec iterating in ceph_writepages_start()

ceph_writepages_start() supports writing non-continuous pages.
If it encounters a non-dirty or non-writeable page in pagevec,
it can continue to check the rest pages in pagevec.

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