]> git-server-git.apps.pok.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)
committerJeff Layton <jlayton@kernel.org>
Fri, 29 Apr 2022 20:06:36 +0000 (16:06 -0400)
commitadfd6da2be304900011d841b6c09f18e3892d3e8
tree3ef6e125d070f8f9ea8378efff694d3e0375c182
parent09c3ee4a525bb87f89ec5106028bbd82ed586185
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