aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid6main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/raid6main.c')
-rw-r--r--drivers/md/raid6main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/raid6main.c b/drivers/md/raid6main.c
index b5b7a8d0b165..4062fc16ac2b 100644
--- a/drivers/md/raid6main.c
+++ b/drivers/md/raid6main.c
@@ -186,7 +186,7 @@ static void shrink_buffers(struct stripe_head *sh, int num)
186 if (!p) 186 if (!p)
187 continue; 187 continue;
188 sh->dev[i].page = NULL; 188 sh->dev[i].page = NULL;
189 page_cache_release(p); 189 put_page(p);
190 } 190 }
191} 191}
192 192
@@ -2069,7 +2069,7 @@ static int run(mddev_t *mddev)
2069 */ 2069 */
2070 { 2070 {
2071 int stripe = (mddev->raid_disks-2) * mddev->chunk_size 2071 int stripe = (mddev->raid_disks-2) * mddev->chunk_size
2072 / PAGE_CACHE_SIZE; 2072 / PAGE_SIZE;
2073 if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) 2073 if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe)
2074 mddev->queue->backing_dev_info.ra_pages = 2 * stripe; 2074 mddev->queue->backing_dev_info.ra_pages = 2 * stripe;
2075 } 2075 }
@@ -2084,7 +2084,7 @@ abort:
2084 if (conf) { 2084 if (conf) {
2085 print_raid6_conf(conf); 2085 print_raid6_conf(conf);
2086 if (conf->spare_page) 2086 if (conf->spare_page)
2087 page_cache_release(conf->spare_page); 2087 put_page(conf->spare_page);
2088 if (conf->stripe_hashtbl) 2088 if (conf->stripe_hashtbl)
2089 free_pages((unsigned long) conf->stripe_hashtbl, 2089 free_pages((unsigned long) conf->stripe_hashtbl,
2090 HASH_PAGES_ORDER); 2090 HASH_PAGES_ORDER);