From f48112e2a775f8a282ad3967f420011a64908db2 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Wed, 3 Jun 2020 09:40:00 -0700 Subject: [PATCH] scoutfs: allocate contig block pages with nowarn We first attempt to allocate our large logically contiguous cached blocks with physically contiguous pages to minimize the impact on the tlb. When that fails we fall back to vmalloc()ed blocks. Sadly, high-order page allocation failure is expected and we forgot to provide the flag that suppresses the page allocation failure message. Signed-off-by: Zach Brown --- kmod/src/block.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kmod/src/block.c b/kmod/src/block.c index b14cb9fb..e730f7e5 100644 --- a/kmod/src/block.c +++ b/kmod/src/block.c @@ -144,7 +144,8 @@ static struct block_private *block_alloc(struct super_block *sb, u64 blkno) if (!bp) goto out; - bp->page = alloc_pages(GFP_NOFS, SCOUTFS_BLOCK_LG_PAGE_ORDER); + bp->page = alloc_pages(GFP_NOFS | __GFP_NOWARN, + SCOUTFS_BLOCK_LG_PAGE_ORDER); if (bp->page) { scoutfs_inc_counter(sb, block_cache_alloc_page_order); set_bit(BLOCK_BIT_PAGE_ALLOC, &bp->bits);