Use MIN() macro from sys/param.h.
Reviewed by: trasz MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D6119
This commit is contained in:
parent
7c64ddd5b0
commit
e921a133f1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user