]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: redirty page when writepage_nounlock() skips unwritable page
authorYan, Zheng <zyan@redhat.com>
Tue, 23 May 2017 09:18:53 +0000 (17:18 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 7 Jul 2017 15:25:13 +0000 (17:25 +0200)
commit76917400228e779ae5ab41e33b2a849ee058bbe9
tree8345537a3273ce56adb274bb87c45ac3d071099d
parentcac0814a8a2872ab3a3fb22489d14b191736206d
ceph: redirty page when writepage_nounlock() skips unwritable page

Ceph needs to flush dirty page in the order in which in which snap
context they belong to. Dirty pages belong to older snap context
should be flushed earlier. if writepage_nounlock() can not flush a
page, it should redirty the page.

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