xfs: add a lock annotation to xlog_cil_push_background

This is required to make the clang context analysis happy, which is
more strict than the old sparse lock context tracking.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
Christoph Hellwig 2026-07-20 11:45:44 +02:00 committed by Carlos Maiolino
parent 2d1b21fcc9
commit 166089a856

View File

@ -1627,6 +1627,7 @@ xlog_cil_push_work(
static void
xlog_cil_push_background(
struct xlog *log)
__releases_shared(&log->l_cilp->xc_ctx_lock)
{
struct xfs_cil *cil = log->l_cilp;
int space_used = atomic_read(&cil->xc_ctx->space_used);