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
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; in ntfs_cluster_alloc() local
238 /* Loop until all clusters are allocated, i.e. clusters == 0. */ in ntfs_cluster_alloc()
239 clusters = count; in ntfs_cluster_alloc()
253 /* Loop until we run out of free clusters. */ in ntfs_cluster_alloc()
400 if (!--clusters) { in ntfs_cluster_alloc()
683 ntfs_debug("No free clusters left, going to out."); in ntfs_cluster_alloc()
744 ntfs_error(vol->sb, "Failed to allocate clusters, aborting " in ntfs_cluster_alloc()
753 "clusters.", in ntfs_cluster_alloc()
755 (unsigned long long)(count - clusters)); in ntfs_cluster_alloc()
756 /* Deallocate all allocated clusters. */ in ntfs_cluster_alloc()
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. */ in __ntfs_cluster_free()
891 /* Do the actual freeing of the clusters in this run. */ in __ntfs_cluster_free()
900 /* We have freed @to_free real clusters. */ in __ntfs_cluster_free()
903 /* Go to the next run and adjust the number of clusters left to free. */ in __ntfs_cluster_free()
908 /* Keep track of the total "freed" clusters, including sparse ones. */ in __ntfs_cluster_free()
942 /* The number of clusters in this run that need freeing. */ in __ntfs_cluster_free()
948 /* Do the actual freeing of the clusters in the run. */ in __ntfs_cluster_free()
957 /* We have freed @to_free real clusters. */ in __ntfs_cluster_free()
960 /* Adjust the number of clusters left to free. */ in __ntfs_cluster_free()
964 /* Update the total done clusters. */ in __ntfs_cluster_free()
972 /* We are done. Return the number of actually freed clusters. */ in __ntfs_cluster_free()
978 /* If no real clusters were freed, no need to rollback. */ in __ntfs_cluster_free()