diff options
author | NeilBrown <neilb@suse.de> | 2006-01-06 03:20:31 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-06 11:34:05 -0500 |
commit | 2d1f3b5d1b2cd11a162eb29645df749ec0036413 (patch) | |
tree | bb87ef9fcd2d9760b618d196fc8361a5a4dd851e /drivers/md/raid5.c | |
parent | d7603b7e3a7f802c67f9190b2387d4d5d111ec14 (diff) |
[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 'drivers/md/raid5.c')
-rw-r--r-- | drivers/md/raid5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 0222ba1a6d35..ec5186fd510a 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -167,7 +167,7 @@ static void shrink_buffers(struct stripe_head *sh, int num) | |||
167 | if (!p) | 167 | if (!p) |
168 | continue; | 168 | continue; |
169 | sh->dev[i].page = NULL; | 169 | sh->dev[i].page = NULL; |
170 | page_cache_release(p); | 170 | put_page(p); |
171 | } | 171 | } |
172 | } | 172 | } |
173 | 173 | ||
@@ -1956,7 +1956,7 @@ static int run(mddev_t *mddev) | |||
1956 | */ | 1956 | */ |
1957 | { | 1957 | { |
1958 | int stripe = (mddev->raid_disks-1) * mddev->chunk_size | 1958 | int stripe = (mddev->raid_disks-1) * mddev->chunk_size |
1959 | / PAGE_CACHE_SIZE; | 1959 | / PAGE_SIZE; |
1960 | if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) | 1960 | if (mddev->queue->backing_dev_info.ra_pages < 2 * stripe) |
1961 | mddev->queue->backing_dev_info.ra_pages = 2 * stripe; | 1961 | mddev->queue->backing_dev_info.ra_pages = 2 * stripe; |
1962 | } | 1962 | } |