Commit 8b9b2615 authored by Long Li's avatar Long Li Committed by Carlos Maiolino
Browse files

xfs: remove the redundant xfs_alloc_log_agf



There are two invocations of xfs_alloc_log_agf in xfs_alloc_put_freelist.
The AGF does not change between the two calls. Although this does not pose
any practical problems, it seems like a small mistake. Therefore, fix it
by removing the first xfs_alloc_log_agf invocation.

Signed-off-by: default avatarLong Li <leo.lilong@huawei.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarCarlos Maiolino <cem@kernel.org>
parent 59b723cd
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -3156,8 +3156,6 @@ xfs_alloc_put_freelist(
		logflags |= XFS_AGF_BTREEBLKS;
	}

	xfs_alloc_log_agf(tp, agbp, logflags);

	ASSERT(be32_to_cpu(agf->agf_flcount) <= xfs_agfl_size(mp));

	agfl_bno = xfs_buf_to_agfl_bno(agflbp);