]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: remove the meaningless XFS_ALLOC_FLAG_FREEING
authorJinliang Zheng <alexjlzheng@tencent.com>
Fri, 10 Apr 2026 10:11:06 +0000 (18:11 +0800)
committerCarlos Maiolino <cem@kernel.org>
Mon, 27 Apr 2026 08:36:36 +0000 (10:36 +0200)
In xfs_refcount_finish_one(), there's no need to pass
XFS_ALLOC_FLAG_FREEING to xfs_alloc_read_agf().

So remove it.

Signed-off-by: Jinliang Zheng <alexjlzheng@tencent.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/libxfs/xfs_refcount.c

index 40c7f0ff6cf3a7325a0f0a54b9706f5bf738e544..0ec6ccd8b4dcf58ff008e0b1c1fc292bb42f3da0 100644 (file)
@@ -1414,8 +1414,7 @@ xfs_refcount_finish_one(
        if (rcur == NULL) {
                struct xfs_perag        *pag = to_perag(ri->ri_group);
 
-               error = xfs_alloc_read_agf(pag, tp,
-                               XFS_ALLOC_FLAG_FREEING, &agbp);
+               error = xfs_alloc_read_agf(pag, tp, 0, &agbp);
                if (error)
                        return error;