]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: factor out xfs_zone_inc_written
authorCarlos Maiolino <cem@kernel.org>
Tue, 10 Mar 2026 17:36:48 +0000 (18:36 +0100)
committerCarlos Maiolino <cem@kernel.org>
Thu, 12 Mar 2026 07:49:36 +0000 (08:49 +0100)
commit3bdc20b005c20ce1bf9b098d1ee2caa1d994141e
tree168f9e8345f4fd16af9ebd463d3163dc60e63d6f
parent02a5d8993b09fe9a6754e57d0e25399baffe9a06
xfs: factor out xfs_zone_inc_written

Move the written blocks increment and full zone check into a new helper.
Also add an assert to ensure rmap lock is held here.

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