Commit 927e0f42 authored by Kaixu Xia's avatar Kaixu Xia Committed by Stefan Bader

writeback: fix the wrong congested state variable definition

BugLink: http://bugs.launchpad.net/bugs/1765007

commit c877ef8a upstream.

The right variable definition should be wb_congested_state that
include WB_async_congested and WB_sync_congested. So fix it.
Signed-off-by: default avatarKaixu Xia <xiakaixu@huawei.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
Cc: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 1212327a
...@@ -1000,7 +1000,7 @@ static atomic_t nr_wb_congested[2]; ...@@ -1000,7 +1000,7 @@ static atomic_t nr_wb_congested[2];
void clear_wb_congested(struct bdi_writeback_congested *congested, int sync) void clear_wb_congested(struct bdi_writeback_congested *congested, int sync)
{ {
wait_queue_head_t *wqh = &congestion_wqh[sync]; wait_queue_head_t *wqh = &congestion_wqh[sync];
enum wb_state bit; enum wb_congested_state bit;
bit = sync ? WB_sync_congested : WB_async_congested; bit = sync ? WB_sync_congested : WB_async_congested;
if (test_and_clear_bit(bit, &congested->state)) if (test_and_clear_bit(bit, &congested->state))
...@@ -1013,7 +1013,7 @@ EXPORT_SYMBOL(clear_wb_congested); ...@@ -1013,7 +1013,7 @@ EXPORT_SYMBOL(clear_wb_congested);
void set_wb_congested(struct bdi_writeback_congested *congested, int sync) void set_wb_congested(struct bdi_writeback_congested *congested, int sync)
{ {
enum wb_state bit; enum wb_congested_state bit;
bit = sync ? WB_sync_congested : WB_async_congested; bit = sync ? WB_sync_congested : WB_async_congested;
if (!test_and_set_bit(bit, &congested->state)) if (!test_and_set_bit(bit, &congested->state))
......
Markdown is supported
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