]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: Remove two dead transaction log reservaion macros
authorJie Liu <jeff.liu@oracle.com>
Fri, 3 May 2013 07:41:19 +0000 (15:41 +0800)
committerBen Myers <bpm@sgi.com>
Wed, 19 Jun 2013 19:26:16 +0000 (14:26 -0500)
commit46f3742bb0b7463b680aebe3c91510ee54e0e303
treea3036b7d1dcaa8a45850562faa6dd8fda68a92a3
parent96cc5dafe749ebbd8ea0d53b21cbcaec62c5bc70
xfs: Remove two dead transaction log reservaion macros

Upstream commit e402942c10fcd77e5b712615376091c11deea7c1
xfs: make use of xfs_calc_buf_res() in xfs_trans.c

Beginning from above commit, neither XFS_ALLOCFREE_LOG_RES() nor
XFS_DIROP_LOG_RES() is used by those routines for calculating
transaction space reservations, so it's safe to remove them now.

Also, with a slightly update for the relevant comments to reflect
the ideas of why those log count numbers should be.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Ben Myers <bpm@sgi.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_trans.h