Lines Matching full:clusters
23 * ntfs_cluster_free_from_rl_nolock - free clusters from runlist
24 * @vol: mounted ntfs volume on which to free the clusters
25 * @rl: runlist describing the clusters to free
27 * Free all the clusters described by the runlist @rl on the volume @vol. In
28 * the case of an error being returned, at least some of the clusters were not
120 * ntfs_cluster_alloc - allocate clusters on an ntfs volume
121 * @vol: mounted ntfs volume on which to allocate clusters
123 * @count: number of clusters to allocate
124 * @start_lcn: starting lcn at which to allocate the clusters or -1 if none
130 * Allocate @count clusters preferably starting at cluster @start_lcn or at the
132 * @vol. @zone is either DATA_ZONE for allocation of normal clusters or
133 * MFT_ZONE for allocation of clusters for the master file table, i.e. the
139 * If @is_extension is 'true', the caller is allocating clusters to extend an
140 * attribute and if it is 'false', the caller is allocating clusters to fill a
192 s64 clusters, free_clusters; in ntfs_cluster_alloc() local
297 /* Loop until all clusters are allocated, i.e. clusters == 0. */ in ntfs_cluster_alloc()
298 clusters = count; in ntfs_cluster_alloc()
303 * cover more clusters than that; bound the scan by the array. in ntfs_cluster_alloc()
312 /* Loop until we run out of free clusters. */ in ntfs_cluster_alloc()
443 if (!--clusters) { in ntfs_cluster_alloc()
691 ntfs_debug("No free clusters left, going to out."); in ntfs_cluster_alloc()
751 "Failed to allocate clusters, aborting (error %i).", in ntfs_cluster_alloc()
757 …to complete allocation, err -ENOSPC, first free lcn 0x%llx, could allocate up to 0x%llx clusters.", in ntfs_cluster_alloc()
758 rl[0].lcn, count - clusters); in ntfs_cluster_alloc()
759 /* Deallocate all allocated clusters. */ in ntfs_cluster_alloc()
783 * __ntfs_cluster_free - free clusters on an ntfs volume
784 * @ni: ntfs inode whose runlist describes the clusters to free
785 * @start_vcn: vcn in the runlist of @ni at which to start freeing clusters
786 * @count: number of clusters to free or -1 for all clusters
790 * Free @count clusters starting at the cluster @start_vcn in the runlist
793 * If @count is -1, all clusters from @start_vcn to the end of the runlist are
794 * deallocated. Thus, to completely free all clusters in a runlist, use
820 * Return the number of deallocated clusters (not counting sparse ones) on
903 /* The number of clusters in this run that need freeing. */ in __ntfs_cluster_free()
909 /* Do the actual freeing of the clusters in this run. */ in __ntfs_cluster_free()
919 /* We have freed @to_free real clusters. */ in __ntfs_cluster_free()
922 /* Go to the next run and adjust the number of clusters left to free. */ in __ntfs_cluster_free()
927 /* Keep track of the total "freed" clusters, including sparse ones. */ in __ntfs_cluster_free()
956 /* The number of clusters in this run that need freeing. */ in __ntfs_cluster_free()
962 /* Do the actual freeing of the clusters in the run. */ in __ntfs_cluster_free()
970 /* We have freed @to_free real clusters. */ in __ntfs_cluster_free()
973 /* Adjust the number of clusters left to free. */ in __ntfs_cluster_free()
977 /* Update the total done clusters. */ in __ntfs_cluster_free()
1025 /* We are done. Return the number of actually freed clusters. */ in __ntfs_cluster_free()
1031 /* If no real clusters were freed, no need to rollback. */ in __ntfs_cluster_free()