Lines Matching defs:nr_clusters
567 old_b = vol->nr_clusters * vol->cluster_size;
574 if (supp_lcn > vol->nr_clusters) {
583 freed_b = (vol->nr_clusters - supp_lcn + 1) * vol->cluster_size;
638 static s64 nr_clusters_to_bitmap_byte_size(s64 nr_clusters)
642 bm_bsize = rounded_up_division(nr_clusters, 8);
815 if (k >= (u64)vol->nr_clusters) {
918 cl == vol->nr_clusters / 2) {
1869 s64 nr_clusters = resize->new_volume_size;
1880 rl_truncate(&rl_bad, nr_clusters);
1882 a->u.nonres.highest_vcn = cpu_to_sle64(nr_clusters - 1LL);
1883 a->u.nonres.allocated_size = cpu_to_sle64(nr_clusters * vol->cluster_size);
1884 a->u.nonres.data_size = cpu_to_sle64(nr_clusters * vol->cluster_size);
1913 for (i = vol->nr_clusters; i < new_size; i++)
2122 static int setup_lcn_bitmap(struct bitmap *bm, s64 nr_clusters)
2125 bm->size = rounded_up_division(nr_clusters, 8);
2131 bitmap_file_data_fixup(nr_clusters, bm);
2176 static s64 vol_size(ntfs_volume *v, s64 nr_clusters)
2179 return nr_clusters * v->cluster_size + v->sector_size;
2202 total = vol->nr_clusters * vol->cluster_size;
2284 print_vol_size("Current volume size", vol_size(vol, vol->nr_clusters));
2330 if (resize->inuse == resize->vol->nr_clusters)
2359 if (setup_lcn_bitmap(&fsck->lcn_bitmap, vol->nr_clusters) != 0)
2406 if (device_size < vol->nr_clusters * vol->cluster_size)
2430 if (!opt.info && (new_size == vol->nr_clusters ||
2432 new_size == vol->nr_clusters - 1))) {
2441 if (new_size < vol->nr_clusters)