aboutsummaryrefslogtreecommitdiffstats
path: root/lib/flex_proportions.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-01-09 23:40:57 +0100
committerChristoph Hellwig <hch@lst.de>2018-01-15 09:35:13 +0100
commit95f183916d4b0bc1943684948ecdd2469f1aa978 (patch)
tree4f35e71033398e1ac96e90454a84f1ad2402492e /lib/flex_proportions.c
parentdma-direct: add support for allocation from ZONE_DMA and ZONE_DMA32 (diff)
downloadlinux-dev-95f183916d4b0bc1943684948ecdd2469f1aa978.tar.xz
linux-dev-95f183916d4b0bc1943684948ecdd2469f1aa978.zip
dma-direct: retry allocations using GFP_DMA for small masks
If an attempt to allocate memory succeeded, but isn't inside the supported DMA mask, retry the allocation with GFP_DMA set as a last resort. Based on the x86 code, but an off by one error in what is now dma_coherent_ok has been fixed vs the x86 code. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'lib/flex_proportions.c')
0 files changed, 0 insertions, 0 deletions