Re: misc buffer cache improvements

Carlos Maiolino <[email protected]>
Newsgroups org.kernel.vger.linux-xfs
Message-ID <[email protected]>
On Wed, 15 Jul 2026 16:50:53 +0200, Christoph Hellwig wrote:
> a bunch of misc xfs_buf patches.  These came out of a little
> project that needs a async read API (not actually included here),
> and to get there a lot of lose ends had to be cleaned up, and a
> lockless path for readaheads that doesn't kick off the read fell
> out easily.
> 
> Diffstat:
>  libxfs/xfs_btree_staging.c |    7
>  libxfs/xfs_dquot_buf.c     |    8
>  libxfs/xfs_ialloc.c        |    2
>  libxfs/xfs_inode_buf.c     |   15 -
>  xfs_buf.c                  |  392 +++++++++++++++++++++++----------------------
>  xfs_buf.h                  |    8
>  xfs_buf_item.c             |   10 -
>  xfs_buf_item_recover.c     |    3
>  xfs_dquot_item_recover.c   |    1
>  xfs_fsops.c                |    2
>  xfs_inode.c                |    4
>  xfs_inode_item_recover.c   |    1
>  xfs_log_recover.c          |    5
>  xfs_trace.h                |    2
>  xfs_trans_buf.c            |    7
>  15 files changed, 239 insertions(+), 228 deletions(-)
> 
> [...]

Applied to for-next, thanks!

[01/12] xfs: don't get a pag reference in xfs_buf_get_map
        commit: 45fd506c334ceb79ea3b40986b2c5ebb7802b385
[02/12] xfs: consolidate buffer locking in xfs_buf_get_map
        commit: 568c8798a3d0afabc133d7b34d37155daa95d1f2
[03/12] xfs: split out a lower-level xfs_buf_get_map helper from xfs_find_get_buf
        commit: b6ba780af010f0d1c5bfb970fe692a02559de473
[04/12] xfs: remove spurious XBF_DONE clearing on readahead validation failure
        commit: 7a4eae80b5b3db8d68961af3707fd56f2220cc29
[05/12] xfs: remove _XBF_LOGRECOVERY
        commit: d80fe85bb2fc551e56758606f764e57516b7f9a3
[06/12] xfs: hide b_flags manipulation from code outside of xfs_buf.c
        commit: 9f224de410d7efafc44ce1880aabd0101aa8688f
[07/12] xfs: use WRITE_ONCE to update b_flags
        commit: b15f6520ab6481b89688d4b6362d1fa5d9f9df6b
[08/12] xfs: don't reverify buffers in xfs_buf_readahead_map
        commit: 3d102727432b5c5cff9afa80a430ca8f34b59666
[09/12] xfs: use goto based error unwinding in xfs_buf_read_map
        commit: 819f1cc98aaf09733b30700608a02256f47d7908
[10/12] xfs: merge xfs_buf_reverify into xfs_buf_read_map
        commit: 21cc7775ee5ca2d5cd4be0de0d55fd28b14fd4e1
[11/12] xfs: move buffer locking out of xfs_find_get_buf
        commit: 2aedf844be1d578c4c2746177aaaf096a053d650
[12/12] xfs: add lockless xfs_buf_readahead_map fast path
        commit: 00f40876f417463ef759dc3b0c4cfe15da48b092

Best regards,
-- 
Carlos Maiolino <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.