Skip to content
Commit 8d38633c authored by Konstantin Khebnikov's avatar Konstantin Khebnikov Committed by Linus Torvalds
Browse files

page_writeback: put account_page_redirty() after set_page_dirty()



Helper account_page_redirty() fixes dirty pages counter for redirtied
pages.  This patch puts it after dirtying and prevents temporary
underflows of dirtied pages counters on zone/bdi and current->nr_dirtied.

Signed-off-by: default avatarKonstantin Khebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b30fe6c7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment