]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: rearrange code in xfs_buf_item.c
authorDave Chinner <dchinner@redhat.com>
Wed, 25 Jun 2025 22:48:58 +0000 (08:48 +1000)
committerCarlos Maiolino <cem@kernel.org>
Fri, 27 Jun 2025 12:14:37 +0000 (14:14 +0200)
commitd2fe5c4c8d25999862d615f616aea7befdd62799
tree2b6b7929ddab704559421962a17f3014e5c61c9b
parentfc48627b9c22f4d18651ca72ba171952d7a26004
xfs: rearrange code in xfs_buf_item.c

The code to initialise, release and free items is all the way down
the bottom of the file. Upcoming fixes need to these functions
earlier in the file, so move them to the top.

There is one code change in this move - the parameter to
xfs_buf_item_relse() is changed from the xfs_buf to the
xfs_buf_log_item - the thing that the function is releasing.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_buf_item.h