ceph: redirty the page for writepage on failure
authorXiubo Li <xiubli@redhat.com>
Sun, 24 Apr 2022 09:35:53 +0000 (17:35 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2022 18:45:14 +0000 (20:45 +0200)
commit3459bd0c55ed28f86a1fd2e01e376492cb6d4f91
tree520116252ba66279f53d9fc3854a3ba64920bc20
parent5eed80fba65cd707075892450bc5d6bd464862a0
ceph: redirty the page for writepage on failure

When run out of memories we should redirty the page before failing
the writepage. Or we will hit BUG_ON(folio_get_private(folio)) in
ceph_dirty_folio().

URL: https://tracker.ceph.com/issues/55421
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/addr.c