Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1368302

[PATCH] writeback: fix the wrong congested state variable definition

From Kaixu Xia <xiakaixu@huawei.com>
Newsgroups linux.kernel
Subject [PATCH] writeback: fix the wrong congested state variable definition
Date 2016-03-31 15:30 +0200
Message-ID <riKPE-5Ha-17@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 mm/backing-dev.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/backing-dev.c b/mm/backing-dev.c
index bfbd709..0c6317b 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))
-- 
1.8.3.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] writeback: fix the wrong congested state variable definition Kaixu Xia <xiakaixu@huawei.com> - 2016-03-31 15:30 +0200
  Re: [PATCH] writeback: fix the wrong congested state variable  definition Tejun Heo <tj@kernel.org> - 2016-03-31 18:50 +0200
  Re: [PATCH] writeback: fix the wrong congested state variable  definition Jens Axboe <axboe@kernel.dk> - 2016-03-31 20:30 +0200

csiph-web