Commit 7a9e704b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] osst.c: suppress page allocation failure warnings

This driver is trying an order-9 allocation and if that fails, order 8, etc.
Crufty, but we do expect failures, so suppress the warnings.
parent 73027d99
...@@ -5106,6 +5106,8 @@ static int enlarge_buffer(OSST_buffer *STbuffer, int need_dma) ...@@ -5106,6 +5106,8 @@ static int enlarge_buffer(OSST_buffer *STbuffer, int need_dma)
if (need_dma) if (need_dma)
priority |= GFP_DMA; priority |= GFP_DMA;
priority |= __GFP_NOWARN;
/* Try to allocate the first segment up to OS_DATA_SIZE and the others /* Try to allocate the first segment up to OS_DATA_SIZE and the others
big enough to reach the goal (code assumes no segments in place) */ big enough to reach the goal (code assumes no segments in place) */
for (b_size = OS_DATA_SIZE, order = OSST_FIRST_ORDER; b_size >= PAGE_SIZE; order--, b_size /= 2) { for (b_size = OS_DATA_SIZE, order = OSST_FIRST_ORDER; b_size >= PAGE_SIZE; order--, b_size /= 2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment