Skip to content

Commit c877ef8

Browse files
Kaixu Xiaaxboe
authored andcommitted
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>
1 parent b30a337 commit c877ef8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/backing-dev.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ static atomic_t nr_wb_congested[2];
898898
void clear_wb_congested(struct bdi_writeback_congested *congested, int sync)
899899
{
900900
wait_queue_head_t *wqh = &congestion_wqh[sync];
901-
enum wb_state bit;
901+
enum wb_congested_state bit;
902902

903903
bit = sync ? WB_sync_congested : WB_async_congested;
904904
if (test_and_clear_bit(bit, &congested->state))
@@ -911,7 +911,7 @@ EXPORT_SYMBOL(clear_wb_congested);
911911

912912
void set_wb_congested(struct bdi_writeback_congested *congested, int sync)
913913
{
914-
enum wb_state bit;
914+
enum wb_congested_state bit;
915915

916916
bit = sync ? WB_sync_congested : WB_async_congested;
917917
if (!test_and_set_bit(bit, &congested->state))

0 commit comments

Comments
 (0)