X-Git-Url: http://git.cascardo.info/?p=cascardo%2Flinux.git;a=blobdiff_plain;f=block%2Fblk-settings.c;h=05e826793e4e36b2e6c8de29802674767e3bd4d8;hp=53309333c2f015fff6b6a7ae8a9a01700105b3e8;hb=0910c0bdf7c291a41bc21e40a97389c9d4c1960d;hpb=e37459b8e2c7db6735e39e019e448b76e5e77647 diff --git a/block/blk-settings.c b/block/blk-settings.c index 53309333c2f0..05e826793e4e 100644 --- a/block/blk-settings.c +++ b/block/blk-settings.c @@ -196,17 +196,17 @@ EXPORT_SYMBOL(blk_queue_make_request); /** * blk_queue_bounce_limit - set bounce buffer limit for queue * @q: the request queue for the device - * @dma_mask: the maximum address the device can handle + * @max_addr: the maximum address the device can handle * * Description: * Different hardware can have different requirements as to what pages * it can do I/O directly to. A low level driver can call * blk_queue_bounce_limit to have lower memory pages allocated as bounce - * buffers for doing I/O to pages residing above @dma_mask. + * buffers for doing I/O to pages residing above @max_addr. **/ -void blk_queue_bounce_limit(struct request_queue *q, u64 dma_mask) +void blk_queue_bounce_limit(struct request_queue *q, u64 max_addr) { - unsigned long b_pfn = dma_mask >> PAGE_SHIFT; + unsigned long b_pfn = max_addr >> PAGE_SHIFT; int dma = 0; q->bounce_gfp = GFP_NOIO;