summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorKaixu Xia <xiakaixu@huawei.com>2016-03-31 16:19:41 +0300
committerJens Axboe <axboe@fb.com>2016-03-31 21:26:25 +0300
commitc877ef8ae7b8edaedccad0fc8c23d4d1de7e2480 (patch)
tree705af88ec0085027350384fb0567fe1cd531dbab /mm
parentb30a337ca27c4f40439e4bfb290cba5f88d73bb7 (diff)
downloadlinux-c877ef8ae7b8edaedccad0fc8c23d4d1de7e2480.tar.xz
writeback: fix the wrong congested state variable definition
The right variable definition should be wb_congested_state that include WB_async_congested and WB_sync_congested. So fix it. Signed-off-by: Kaixu Xia <xiakaixu@huawei.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'mm')
-rw-r--r--mm/backing-dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/backing-dev.c b/mm/backing-dev.c
index bfbd7096b6ed..0c6317b7db38 100644
--- a/mm/backing-dev.c
+++ b/mm/backing-dev.c
@@ -898,7 +898,7 @@ static atomic_t nr_wb_congested[2];
void clear_wb_congested(struct bdi_writeback_congested *congested, int 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;
if (test_and_clear_bit(bit, &congested->state))
@@ -911,7 +911,7 @@ EXPORT_SYMBOL(clear_wb_congested);
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;
if (!test_and_set_bit(bit, &congested->state))