summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid6main.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-01-06 09:20:31 +0100
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 17:34:05 +0100
commit2d1f3b5d1b2cd11a162eb29645df749ec0036413 (patch)
treebb87ef9fcd2d9760b618d196fc8361a5a4dd851e /drivers/md/raid6main.c
parent[PATCH] md: make /proc/mdstat pollable (diff)
downloadlinux-2d1f3b5d1b2cd11a162eb29645df749ec0036413.tar.xz
linux-2d1f3b5d1b2cd11a162eb29645df749ec0036413.zip
[PATCH] md: clean up 'page' related names in md
Substitute: page_cache_get -> get_page page_cache_release -> put_page PAGE_CACHE_SHIFT -> PAGE_SHIFT PAGE_CACHE_SIZE -> PAGE_SIZE PAGE_CACHE_MASK -> PAGE_MASK __free_page -> put_page because we aren't using the page cache, we are just using pages. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to '')
-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)
if (!p)
continue;
sh->dev[i].page = NULL;
- page_cache_release(p);
+ put_page(p);
}
}
@@ -2069,7 +2069,7 @@ static int run(mddev_t *mddev)
*/
{
int stripe = (mddev->raid_disks-2) * mddev->chunk_size
- / PAGE_CACHE_SIZE;
+ / PAGE_SIZE;
if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe)
mddev->queue->backing_dev_info.ra_pages = 2 * stripe;
}
@@ -2084,7 +2084,7 @@ abort:
if (conf) {
print_raid6_conf(conf);
if (conf->spare_page)
- page_cache_release(conf->spare_page);
+ put_page(conf->spare_page);
if (conf->stripe_hashtbl)
free_pages((unsigned long) conf->stripe_hashtbl,
HASH_PAGES_ORDER);