]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: call xfs_buf_alloc_backing_mem from _xfs_buf_alloc
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Mar 2025 05:48:32 +0000 (06:48 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 18 Mar 2025 13:47:45 +0000 (14:47 +0100)
commit1ec1207722c8bf584a09754afa2966698d6dd7af
tree22eb150278a84d37ae2d49f11d31fbdf822363ff
parent34ba1fcd74562b5a954e3fda5a303ab412682340
xfs: call xfs_buf_alloc_backing_mem from _xfs_buf_alloc

We never allocate a buffer without backing memory.  Simplify the call
chain by calling xfs_buf_alloc_backing_mem from _xfs_buf_alloc.  To
avoid a forward declaration, move _xfs_buf_alloc down a bit in the
file.

Also drop the pointless _-prefix from _xfs_buf_alloc.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c