xfs: clean up MIN/MAX
Get rid of the MIN/MAX macros and just use the native min/max macros directly in the XFS code. Signed-Off-By: Dave Chinner <dchinner@redhat.com> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
This commit is contained in:

committed by
Darrick J. Wong

parent
86210fbeba
commit
9bb54cb56a
@@ -1629,8 +1629,8 @@ xlog_grant_push_ail(
|
||||
* log, and 256 blocks.
|
||||
*/
|
||||
free_threshold = BTOBB(need_bytes);
|
||||
free_threshold = MAX(free_threshold, (log->l_logBBsize >> 2));
|
||||
free_threshold = MAX(free_threshold, 256);
|
||||
free_threshold = max(free_threshold, (log->l_logBBsize >> 2));
|
||||
free_threshold = max(free_threshold, 256);
|
||||
if (free_blocks >= free_threshold)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user