diff options
author | FUJITA Tomonori <[email protected]> | 2008-10-23 20:46:55 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2008-10-23 21:54:39 +0200 |
commit | 75bebb7f0c2a709812cccb4d3151a21b012c5cad (patch) | |
tree | dd3a31038904e8b08e4b802830bbc3c746ef78d1 /fs/jbd/commit.c | |
parent | a2b89b596c5a0b288adac84b17bdda6bde8d144e (diff) |
x86: use GFP_DMA for 24bit coherent_dma_mask
dma_alloc_coherent (include/asm-x86/dma-mapping.h) avoids GFP_DMA
allocation first and if the allocated address is not fit for the
device's coherent_dma_mask, then dma_alloc_coherent does GFP_DMA
allocation. This is because dma_alloc_coherent avoids precious GFP_DMA
zone if possible. This is also how the old dma_alloc_coherent
(arch/x86/kernel/pci-dma.c) works.
However, if the coherent_dma_mask of a device is 24bit, there is no
point to go into the above GFP_DMA retry mechanism. We had better use
GFP_DMA in the first place.
Signed-off-by: FUJITA Tomonori <[email protected]>
Tested-by: Takashi Iwai <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions