diff options
author | 2024-09-30 18:42:17 +0800 | |
---|---|---|
committer | 2024-11-05 13:51:55 +0100 | |
commit | 8b9b261594d8ef218ef4d0e732dad153f82aab49 (patch) | |
tree | cd9543edf398a776c29a60fd5154008f0a3a7807 | |
parent | Linux 6.12-rc6 (diff) | |
download | wireguard-linux-8b9b261594d8ef218ef4d0e732dad153f82aab49.tar.xz wireguard-linux-8b9b261594d8ef218ef4d0e732dad153f82aab49.zip |
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 <leo.lilong@huawei.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r-- | fs/xfs/libxfs/xfs_alloc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c index 22bdbb3e9980..68643a3592ac 100644 --- a/fs/xfs/libxfs/xfs_alloc.c +++ b/fs/xfs/libxfs/xfs_alloc.c @@ -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); |