]> git.baikalelectronics.ru Git - kernel.git/commit
dma-debug: reorder struct dma_debug_entry fields
authorEric Dumazet <edumazet@google.com>
Wed, 30 Oct 2019 19:32:04 +0000 (12:32 -0700)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Nov 2019 09:52:18 +0000 (10:52 +0100)
commit92f3a5e4d349ed53fa53d315098d53e2cefa7807
tree232edd0d94fe5628fa3726c6bbd4f7605833b6b3
parent89b8b4dc7a043124287296dc108af07fca5d878e
dma-debug: reorder struct dma_debug_entry fields

Move all fields used during exact match lookups to the first cache line.
This makes debug_dma_mapping_error() and friends about 50% faster.

Since it removes two 32bit holes, force a cacheline alignment on struct
dma_debug_entry.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/debug.c