mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-02 16:52:03 +00:00
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 <zab@versity.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user