]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
ceph: redirty the page for wirtepage if fails
authorXiubo Li <xiubli@redhat.com>
Sun, 24 Apr 2022 09:35:53 +0000 (17:35 +0800)
committerXiubo Li <xiubli@redhat.com>
Tue, 26 Apr 2022 01:22:55 +0000 (09:22 +0800)
commit607e62390ecf4b7973f992be688ce4c20a8662c9
tree0befd7054db943a68dabdf941b273e0962b0f9f7
parent7e96a2cf80d570f5d571577c9c74a62fd116b730
ceph: redirty the page for wirtepage if fails

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
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
fs/ceph/addr.c