Skip to content

Commit 8b9b261

Browse files
Long Licmaiolino
authored andcommitted
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: Long Li <[email protected]> Reviewed-by: Dave Chinner <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent 59b723c commit 8b9b261

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/xfs/libxfs/xfs_alloc.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3156,8 +3156,6 @@ xfs_alloc_put_freelist(
31563156
logflags |= XFS_AGF_BTREEBLKS;
31573157
}
31583158

3159-
xfs_alloc_log_agf(tp, agbp, logflags);
3160-
31613159
ASSERT(be32_to_cpu(agf->agf_flcount) <= xfs_agfl_size(mp));
31623160

31633161
agfl_bno = xfs_buf_to_agfl_bno(agflbp);

0 commit comments

Comments
 (0)