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)
commitd3694f30732fd2a334b93f087033c5a5836f7aba
tree232edd0d94fe5628fa3726c6bbd4f7605833b6b3
parent0f665b9e2a6d4cc963e6cd349d40320ed5281f95
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