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/raid10.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/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 3f8df2ecbae3..ce729d6daf78 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c | |||
@@ -134,10 +134,10 @@ static void * r10buf_pool_alloc(gfp_t gfp_flags, void *data) | |||
134 | 134 | ||
135 | out_free_pages: | 135 | out_free_pages: |
136 | for ( ; i > 0 ; i--) | 136 | for ( ; i > 0 ; i--) |
137 | __free_page(bio->bi_io_vec[i-1].bv_page); | 137 | put_page(bio->bi_io_vec[i-1].bv_page); |
138 | while (j--) | 138 | while (j--) |
139 | for (i = 0; i < RESYNC_PAGES ; i++) | 139 | for (i = 0; i < RESYNC_PAGES ; i++) |
140 | __free_page(r10_bio->devs[j].bio->bi_io_vec[i].bv_page); | 140 | put_page(r10_bio->devs[j].bio->bi_io_vec[i].bv_page); |
141 | j = -1; | 141 | j = -1; |
142 | out_free_bio: | 142 | out_free_bio: |
143 | while ( ++j < nalloc ) | 143 | while ( ++j < nalloc ) |
@@ -157,7 +157,7 @@ static void r10buf_pool_free(void *__r10_bio, void *data) | |||
157 | struct bio *bio = r10bio->devs[j].bio; | 157 | struct bio *bio = r10bio->devs[j].bio; |
158 | if (bio) { | 158 | if (bio) { |
159 | for (i = 0; i < RESYNC_PAGES; i++) { | 159 | for (i = 0; i < RESYNC_PAGES; i++) { |
160 | __free_page(bio->bi_io_vec[i].bv_page); | 160 | put_page(bio->bi_io_vec[i].bv_page); |
161 | bio->bi_io_vec[i].bv_page = NULL; | 161 | bio->bi_io_vec[i].bv_page = NULL; |
162 | } | 162 | } |
163 | bio_put(bio); | 163 | bio_put(bio); |
@@ -2015,7 +2015,7 @@ static int run(mddev_t *mddev) | |||
2015 | * maybe... | 2015 | * maybe... |
2016 | */ | 2016 | */ |
2017 | { | 2017 | { |
2018 | int stripe = conf->raid_disks * mddev->chunk_size / PAGE_CACHE_SIZE; | 2018 | int stripe = conf->raid_disks * mddev->chunk_size / PAGE_SIZE; |
2019 | stripe /= conf->near_copies; | 2019 | stripe /= conf->near_copies; |
2020 | if (mddev->queue->backing_dev_info.ra_pages < 2* stripe) | 2020 | if (mddev->queue->backing_dev_info.ra_pages < 2* stripe) |
2021 | mddev->queue->backing_dev_info.ra_pages = 2* stripe; | 2021 | mddev->queue->backing_dev_info.ra_pages = 2* stripe; |