diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-04-25 18:38:24 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-04-28 10:25:59 -0700 |
commit | 6ed7e509d2304519f4f6741670f512a55e9e80fe (patch) | |
tree | 4870cf49980623c0106ca9e4f9f3645a2946a038 /fs/xfs/libxfs/xfs_trans_resv.h | |
parent | df2fd88f8ac77f75a603d9fa5015225cc6c30edb (diff) | |
download | linux-6ed7e509d2304519f4f6741670f512a55e9e80fe.tar.bz2 |
xfs: rename xfs_*alloc*_log_count to _block_count
These functions return the maximum number of blocks that could be logged
in a particular transaction. "log count" is confusing since there's a
separate concept of a log (operation) count in the reservation code, so
let's change it to "block count" to be less confusing.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_trans_resv.h')
-rw-r--r-- | fs/xfs/libxfs/xfs_trans_resv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_trans_resv.h b/fs/xfs/libxfs/xfs_trans_resv.h index 22b99042127a..0554b9d775d2 100644 --- a/fs/xfs/libxfs/xfs_trans_resv.h +++ b/fs/xfs/libxfs/xfs_trans_resv.h @@ -96,7 +96,7 @@ struct xfs_trans_resv { #define XFS_WRITE_LOG_COUNT_REFLINK 8 void xfs_trans_resv_calc(struct xfs_mount *mp, struct xfs_trans_resv *resp); -uint xfs_allocfree_log_count(struct xfs_mount *mp, uint num_ops); +uint xfs_allocfree_block_count(struct xfs_mount *mp, uint num_ops); unsigned int xfs_calc_itruncate_reservation_minlogsize(struct xfs_mount *mp); unsigned int xfs_calc_write_reservation_minlogsize(struct xfs_mount *mp); |