diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2016-05-02 00:44:19 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2016-05-02 00:44:19 +0000 |
commit | e921a133f1aa690e8456251dbd33b5d60f0d3e09 (patch) | |
tree | 838fd5c04439dc19eefbf24f81d2c465312b43ef /sbin/growfs/growfs.c | |
parent | 7c64ddd5b087589a22450699803273670d5f0f5d (diff) | |
download | src-e921a133f1aa690e8456251dbd33b5d60f0d3e09.tar.gz src-e921a133f1aa690e8456251dbd33b5d60f0d3e09.zip |
Use MIN() macro from sys/param.h.
Reviewed by: trasz
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D6119
Notes
Notes:
svn path=/head/; revision=298905
Diffstat (limited to 'sbin/growfs/growfs.c')
-rw-r--r-- | sbin/growfs/growfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c index 5d13a3c82fc0..6d633a2da71b 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; |