[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>
This commit is contained in:
committed by
Linus Torvalds
parent
d7603b7e3a
commit
2d1f3b5d1b
@@ -167,7 +167,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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1956,7 +1956,7 @@ static int run(mddev_t *mddev)
|
||||
*/
|
||||
{
|
||||
int stripe = (mddev->raid_disks-1) * 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user