aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 b0ceb29da4c..e8644b1e552 100644
--- a/mm/backing-dev.c
+++ b/mm/backing-dev.c
@@ -7,7 +7,7 @@
7 7
8int bdi_init(struct backing_dev_info *bdi) 8int bdi_init(struct backing_dev_info *bdi)
9{ 9{
10 int i, j; 10 int i;
11 int err; 11 int err;
12 12
13 for (i = 0; i < NR_BDI_STAT_ITEMS; i++) { 13 for (i = 0; i < NR_BDI_STAT_ITEMS; i++) {
@@ -21,7 +21,7 @@ int bdi_init(struct backing_dev_info *bdi)
21 21
22 if (err) { 22 if (err) {
23err: 23err:
24 for (j = 0; j < i; j++) 24 while (i--)
25 percpu_counter_destroy(&bdi->bdi_stat[i]); 25 percpu_counter_destroy(&bdi->bdi_stat[i]);
26 } 26 }
27 27