summaryrefslogtreecommitdiffstats
path: root/sbin/growfs
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-05-02 00:44:19 +0000
committeraraujo <araujo@FreeBSD.org>2016-05-02 00:44:19 +0000
commit52314e3865e32a5b79b382ba9cf4d78703937710 (patch)
tree838fd5c04439dc19eefbf24f81d2c465312b43ef /sbin/growfs
parent0506ba8df20dcdabf4b21537b21b64f7f40b3b02 (diff)
downloadFreeBSD-src-52314e3865e32a5b79b382ba9cf4d78703937710.zip
FreeBSD-src-52314e3865e32a5b79b382ba9cf4d78703937710.tar.gz
Use MIN() macro from sys/param.h.
Reviewed by: trasz MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6119
Diffstat (limited to 'sbin/growfs')
-rw-r--r--sbin/growfs/growfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index 5d13a3c..6d633a2 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -348,8 +348,7 @@ initcg(int cylno, time_t modtime, int fso, unsigned int Nflag)
acg.cg_magic = CG_MAGIC;
acg.cg_cgx = cylno;
acg.cg_niblk = sblock.fs_ipg;
- acg.cg_initediblk = sblock.fs_ipg < 2 * INOPB(&sblock) ?
- sblock.fs_ipg : 2 * INOPB(&sblock);
+ acg.cg_initediblk = MIN(sblock.fs_ipg, 2 * INOPB(&sblock));
acg.cg_ndblk = dmax - cbase;
if (sblock.fs_contigsumsize > 0)
acg.cg_nclusterblks = acg.cg_ndblk / sblock.fs_frag;
OpenPOWER on IntegriCloud