Lines Matching refs: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
59 * ntfs_cluster_alloc - allocate clusters on an ntfs volume
60 * @vol: mounted ntfs volume on which to allocate the clusters
62 * @count: number of clusters to allocate
63 * @start_lcn: starting lcn at which to allocate the clusters (or -1 if none)
64 * @zone: zone from which to allocate the clusters
67 * Allocate @count clusters preferably starting at cluster @start_lcn or at the
69 * @vol. @zone is either DATA_ZONE for allocation of normal clusters or
70 * MFT_ZONE for allocation of clusters for the master file table, i.e. the
76 * If @is_extension is 'true', the caller is allocating clusters to extend an
77 * attribute and if it is 'false', the caller is allocating clusters to fill a
139 s64 clusters;
238 /* Loop until all clusters are allocated, i.e. clusters == 0. */
239 clusters = count;
253 /* Loop until we run out of free clusters. */
400 if (!--clusters) {
683 ntfs_debug("No free clusters left, going to out.");
744 ntfs_error(vol->sb, "Failed to allocate clusters, aborting "
753 "clusters.",
755 (unsigned long long)(count - clusters));
756 /* Deallocate all allocated clusters. */
776 * __ntfs_cluster_free - free clusters on an ntfs volume
777 * @ni: ntfs inode whose runlist describes the clusters to free
778 * @start_vcn: vcn in the runlist of @ni at which to start freeing clusters
779 * @count: number of clusters to free or -1 for all clusters
783 * Free @count clusters starting at the cluster @start_vcn in the runlist
786 * If @count is -1, all clusters from @start_vcn to the end of the runlist are
787 * deallocated. Thus, to completely free all clusters in a runlist, use
813 * Return the number of deallocated clusters (not counting sparse ones) on
885 /* The number of clusters in this run that need freeing. */
891 /* Do the actual freeing of the clusters in this run. */
900 /* We have freed @to_free real clusters. */
903 /* Go to the next run and adjust the number of clusters left to free. */
908 /* Keep track of the total "freed" clusters, including sparse ones. */
942 /* The number of clusters in this run that need freeing. */
948 /* Do the actual freeing of the clusters in the run. */
957 /* We have freed @to_free real clusters. */
960 /* Adjust the number of clusters left to free. */
964 /* Update the total done clusters. */
972 /* We are done. Return the number of actually freed clusters. */
978 /* If no real clusters were freed, no need to rollback. */