]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - mkfs/xfs_mkfs.c
libxfs: fix libxfs_trans_alloc callsite problems
[thirdparty/xfsprogs-dev.git] / mkfs / xfs_mkfs.c
index 2e53c1e83b6a77c73307a508638b3dae51387d7c..c6ef3a710fd04c097895b021eed00da73ff16ff0 100644 (file)
@@ -3677,7 +3677,7 @@ initialise_ag_freespace(
        struct xfs_trans_res tres = {0};
        int                     c;
 
-       c = libxfs_trans_alloc(mp, &tres, worst_freelist, 0, 0, &tp);
+       c = -libxfs_trans_alloc(mp, &tres, worst_freelist, 0, 0, &tp);
        if (c)
                res_failed(c);