diff options
author | Santosh Shilimkar <santosh.shilimkar@ti.com> | 2013-07-29 09:17:54 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-10-31 10:49:22 -0400 |
commit | 9f7e45d83ef09a481cbc4172849bd1fcf88a39ed (patch) | |
tree | a08e2c3f5dacfe2dfc53d416a4ecb001378a38e5 /block/blk-settings.c | |
parent | 4dcfa60071b3d23f0181f27d8519f12e37cefbb9 (diff) |
ARM: 7794/1: block: Rename parameter dma_mask to max_addr for blk_queue_bounce_limit()
The blk_queue_bounce_limit() API parameter 'dma_mask' is actually the
maximum address the device can handle rather than a dma_mask. Rename
it accordingly to avoid it being interpreted as dma_mask.
No functional change.
The idea is to fix the bad assumptions about dma_mask wherever it could
be miss-interpreted.
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'block/blk-settings.c')
-rw-r--r-- | block/blk-settings.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/block/blk-settings.c b/block/blk-settings.c index c50ecf0ea3b1..026c1517505f 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c | |||
@@ -195,17 +195,17 @@ EXPORT_SYMBOL(blk_queue_make_request); | |||
195 | /** | 195 | /** |
196 | * blk_queue_bounce_limit - set bounce buffer limit for queue | 196 | * blk_queue_bounce_limit - set bounce buffer limit for queue |
197 | * @q: the request queue for the device | 197 | * @q: the request queue for the device |
198 | * @dma_mask: the maximum address the device can handle | 198 | * @max_addr: the maximum address the device can handle |
199 | * | 199 | * |
200 | * Description: | 200 | * Description: |
201 | * Different hardware can have different requirements as to what pages | 201 | * Different hardware can have different requirements as to what pages |
202 | * it can do I/O directly to. A low level driver can call | 202 | * it can do I/O directly to. A low level driver can call |
203 | * blk_queue_bounce_limit to have lower memory pages allocated as bounce | 203 | * blk_queue_bounce_limit to have lower memory pages allocated as bounce |
204 | * buffers for doing I/O to pages residing above @dma_mask. | 204 | * buffers for doing I/O to pages residing above @max_addr. |
205 | **/ | 205 | **/ |
206 | void blk_queue_bounce_limit(struct request_queue *q, u64 dma_mask) | 206 | void blk_queue_bounce_limit(struct request_queue *q, u64 max_addr) |
207 | { | 207 | { |
208 | unsigned long b_pfn = dma_mask >> PAGE_SHIFT; | 208 | unsigned long b_pfn = max_addr >> PAGE_SHIFT; |
209 | int dma = 0; | 209 | int dma = 0; |
210 | 210 | ||
211 | q->bounce_gfp = GFP_NOIO; | 211 | q->bounce_gfp = GFP_NOIO; |