]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: switch (back) to a per-buftarg buffer hash
authorChristoph Hellwig <hch@lst.de>
Sat, 11 Jan 2025 06:44:33 +0000 (07:44 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 13 Jan 2025 04:17:39 +0000 (05:17 +0100)
commite3cc537864a7ab980abfa18a3efe01a111aad1d7
treecd5bc310487b19954287b099b40b8b8f84259426
parentdf63968f7fc709474f988bfedc0b686d4580b357
xfs: switch (back) to a per-buftarg buffer hash

The per-AG buffer hashes were added when all buffer lookups took a
per-hash look.  Since then we've made lookups entirely lockless and
removed the need for a hash-wide lock for inserts and removals as
well.  With this there is no need to sharding the hash, so reduce the
used resources by using a per-buftarg hash for all buftargs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_ag.c
fs/xfs/libxfs/xfs_ag.h
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
fs/xfs/xfs_buf_mem.c