aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <[email protected]>2021-04-30 06:01:51 +0000
committerLinus Torvalds <[email protected]>2021-04-30 18:20:43 +0000
commitce76f9a1d9a21c2633dcd2a5605f923286e16e1d (patch)
treeac88cdbe2dcb1b12d204bbe2fb0401d98b61d81b /fs/ext4/fast_commit.c
parentmm/page_alloc: add an array-based interface to the bulk page allocator (diff)
downloadkernel-ce76f9a1d9a21c2633dcd2a5605f923286e16e1d.tar.gz
kernel-ce76f9a1d9a21c2633dcd2a5605f923286e16e1d.zip
mm/page_alloc: optimize code layout for __alloc_pages_bulk
Looking at perf-report and ASM-code for __alloc_pages_bulk() it is clear that the code activated is suboptimal. The compiler guesses wrong and places unlikely code at the beginning. Due to the use of WARN_ON_ONCE() macro the UD2 asm instruction is added to the code, which confuse the I-cache prefetcher in the CPU. [[email protected]: minor changes and rebasing] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jesper Dangaard Brouer <[email protected]> Signed-off-by: Mel Gorman <[email protected]> Reviewed-by: Alexander Lobakin <[email protected]> Acked-By: Vlastimil Babka <[email protected]> Cc: Alexander Duyck <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Chuck Lever <[email protected]> Cc: David Miller <[email protected]> Cc: Ilias Apalodimas <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions