Lines Matching defs:zone
64 * @zone: zone from which to allocate the clusters
69 * @vol. @zone is either DATA_ZONE for allocation of normal clusters or
91 * There are two data zones. First is the area between the end of the mft zone
93 * volume and the start of the mft zone. On unmodified/standard NTFS 1.x
94 * volumes, the second data zone does not exist due to the mft zone being
107 * the MFT zone approach used by Windows NT, 2) cause reduction in
112 * FIXME: We should be monitoring cluster allocation and increment the MFT zone
115 * grow the MFT zone dynamically, so it might even be correct not to do this.
116 * The overhead in doing dynamic MFT zone expansion would be very large and
119 * TODO: I have added in double the required zone position pointer wrap around
134 const NTFS_CLUSTER_ALLOCATION_ZONES zone,
150 "0x%llx, zone %s_ZONE.", (unsigned long long)start_vcn,
153 zone == MFT_ZONE ? "MFT" : "DATA");
160 BUG_ON(zone < FIRST_ZONE);
161 BUG_ON(zone > LAST_ZONE);
169 * If no specific @start_lcn was requested, use the current data zone
171 * lies outside the mft zone. Also set done_zones to 0 (no zones done)
172 * and pass depending on whether we are starting inside a zone (1) or
173 * at the beginning of a zone (2). If requesting from the MFT_ZONE,
174 * we either start at the current position within the mft zone or at
182 * is 1 for mft zone, 2 for data zone 1 (end of mft zone till end of
183 * volume) and 4 for data zone 2 (start of volume till start of mft
184 * zone).
188 if (zone == DATA_ZONE)
199 } else if (zone == DATA_ZONE && zone_start >= vol->mft_zone_start &&
204 * pass in this zone is sufficient.
207 } else if (zone == MFT_ZONE && (zone_start < vol->mft_zone_start ||
218 if (zone == MFT_ZONE) {
221 } else /* if (zone == DATA_ZONE) */ {
222 /* Skip searching the mft zone. */
234 * bmp_initial_pos to determine whether or not to do a zone switch.
403 * Update the current zone position. Positions
405 * during the respective zone switches.
408 ntfs_debug("Done. Updating current zone "
494 zone_pass_done: /* Finished with the current zone pass. */
498 * Now do pass 2, scanning the first part of the zone
535 ntfs_debug("Switching zone.");
536 /* Now switch to the next zone we haven't done yet. */
540 ntfs_debug("Switching from mft zone to data1 "
541 "zone.");
542 /* Update mft zone position. */
569 /* Switch from mft zone to data1 zone. */
583 ntfs_debug("Switching from data1 zone to "
584 "data2 zone.");
585 /* Update data1 zone position. */
610 /* Switch from data1 zone to data2 zone. */
624 ntfs_debug("Switching from data2 zone to "
625 "data1 zone.");
626 /* Update data2 zone position. */
649 /* Switch from data2 zone to data1 zone. */
654 ntfs_debug("After zone switch, search_zone %i, "
663 ntfs_debug("Empty zone, going to "
665 /* Empty zone. Don't bother searching it. */
673 * All zones are finished! If DATA_ZONE, shrink mft zone. If
682 if (zone == MFT_ZONE || mft_zone_size <= 0) {
687 } /* zone == DATA_ZONE && mft_zone_size > 0 */
688 ntfs_debug("Shrinking mft zone.");
693 else /* mft zone and data2 zone no longer exist. */
706 ntfs_debug("After shrinking mft zone, mft_zone_size 0x%llx, "