mm: silence enum conversion warnings
authorMichael Benedict <michaelbt@live.com>
Tue, 27 Aug 2019 12:14:36 +0000 (22:14 +1000)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 15:08:57 +0000 (01:08 +1000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
mm/backing-dev.c

index de019331768275cf044da67cf99409879c6c02db..6dbc8515ade22918df8d3aadaf14066b7d5c709d 100644 (file)
@@ -927,7 +927,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))
@@ -940,7 +940,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))