Lines Matching refs:zone
159 static int scan_map(struct adfs_sb_info *asb, unsigned int zone, in scan_map() argument
166 dm = asb->s_map + zone; in scan_map()
167 zone = asb->s_map_size; in scan_map()
168 dm_end = asb->s_map + zone; in scan_map()
179 } while (--zone > 0); in scan_map()
202 unsigned int zone; in adfs_map_statfs() local
205 zone = asb->s_map_size; in adfs_map_statfs()
209 } while (--zone > 0); in adfs_map_statfs()
220 unsigned int zone, mapoff; in adfs_map_lookup() local
228 zone = asb->s_map_size >> 1; in adfs_map_lookup()
230 zone = frag_id / asb->s_ids_per_zone; in adfs_map_lookup()
232 if (zone >= asb->s_map_size) in adfs_map_lookup()
239 result = scan_map(asb, zone, frag_id, mapoff); in adfs_map_lookup()
256 frag_id, zone, asb->s_map_size); in adfs_map_lookup()
312 unsigned int zone, zone_size; in adfs_map_layout() local
322 for (zone = 1; zone < nzones; zone++) { in adfs_map_layout()
323 dm[zone].dm_bh = NULL; in adfs_map_layout()
324 dm[zone].dm_startblk = zone * zone_size - ADFS_DR_SIZE_BITS; in adfs_map_layout()
325 dm[zone].dm_startbit = 32; in adfs_map_layout()
326 dm[zone].dm_endbit = 32 + zone_size; in adfs_map_layout()
337 unsigned int zone; in adfs_map_read() local
339 for (zone = 0; zone < nzones; zone++) { in adfs_map_read()
340 dm[zone].dm_bh = sb_bread(sb, map_addr + zone); in adfs_map_read()
341 if (!dm[zone].dm_bh) in adfs_map_read()
350 unsigned int zone; in adfs_map_relse() local
352 for (zone = 0; zone < nzones; zone++) in adfs_map_relse()
353 brelse(dm[zone].dm_bh); in adfs_map_relse()