Skip to content

Commit b372e96

Browse files
neilbrownidryomov
authored andcommitted
ceph: redirty page before returning AOP_WRITEPAGE_ACTIVATE
The page has been marked clean before writepage is called. If we don't redirty it before postponing the write, it might never get written. Cc: [email protected] Fixes: 503d4fa ("ceph: remove reliance on bdi congestion") Signed-off-by: NeilBrown <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Reviewed-by: Xiubo Li <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent fec50db commit b372e96

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/ceph/addr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,8 +795,10 @@ static int ceph_writepage(struct page *page, struct writeback_control *wbc)
795795
ihold(inode);
796796

797797
if (wbc->sync_mode == WB_SYNC_NONE &&
798-
ceph_inode_to_fs_client(inode)->write_congested)
798+
ceph_inode_to_fs_client(inode)->write_congested) {
799+
redirty_page_for_writepage(wbc, page);
799800
return AOP_WRITEPAGE_ACTIVATE;
801+
}
800802

801803
wait_on_page_fscache(page);
802804

0 commit comments

Comments
 (0)