MAXAG
!bmp->db_numag || (bmp->db_numag > MAXAG) ||
(bmp->db_maxag >= MAXAG) || (bmp->db_maxag < 0) ||
(bmp->db_agpref >= MAXAG) || (bmp->db_agpref < 0) ||
(bmp->db_agwidth < 1) || (bmp->db_agwidth > (LPERCTL / MAXAG)) ||
(bmp->db_agstart > (CTLTREESIZE - 1 - bmp->db_agwidth * (MAXAG - 1))) ||
((bmp->db_mapsize - 1) >> bmp->db_agl2size) > MAXAG) {
for (i = 0; i < MAXAG; i++)
for (i = 0; i < MAXAG; i++)
for (; n < MAXAG; n++)
if (nblocks < BPERDMAP * MAXAG)
__le64 dn_agfree[MAXAG];/* 8*MAXAG: per AG free count */
s64 dn_agfree[MAXAG]; /* per AG free count */
atomic_t db_active[MAXAG]; /* count of active, open files in AG */
for (index = 0; index < MAXAG; index++) {
if (agno < 0 || agno > dn_numag || agno >= MAXAG)
for (index = 0; index < MAXAG; index++) {
if (agno >= MAXAG || agno < 0)
for (index = 0; index < MAXAG; index++) {
for (i = 0; i < MAXAG; i++) {
if (agno >= MAXAG || agno < 0)
struct iagctl_disk in_agctl[MAXAG]; /* 2048: AG control information */
struct iagctl in_agctl[MAXAG]; /* AG control information */
struct mutex im_aglock[MAXAG]; /* 512: per AG locks */