Lines Matching defs:clusters
37 * ntfs_cluster_free_from_rl_nolock - free clusters from runlist
38 * @vol: mounted ntfs volume on which to free the clusters
39 * @rl: runlist describing the clusters to free
41 * Free all the clusters described by the runlist @rl on the volume @vol. In
42 * the case of an error being returned, at least some of the clusters were not
73 * ntfs_cluster_alloc - allocate clusters on an ntfs volume
74 * @vol: mounted ntfs volume on which to allocate the clusters
76 * @count: number of clusters to allocate
77 * @start_lcn: starting lcn at which to allocate the clusters (or -1 if none)
78 * @zone: zone from which to allocate the clusters
81 * Allocate @count clusters preferably starting at cluster @start_lcn or at the
83 * @vol. @zone is either DATA_ZONE for allocation of normal clusters or
84 * MFT_ZONE for allocation of clusters for the master file table, i.e. the
90 * If @is_extension is 'true', the caller is allocating clusters to extend an
91 * attribute and if it is 'false', the caller is allocating clusters to fill a
153 s64 clusters;
252 /* Loop until all clusters are allocated, i.e. clusters == 0. */
253 clusters = count;
267 /* Loop until we run out of free clusters. */
414 if (!--clusters) {
697 ntfs_debug("No free clusters left, going to out.");
758 ntfs_error(vol->sb, "Failed to allocate clusters, aborting "
767 "clusters.",
769 (unsigned long long)(count - clusters));
770 /* Deallocate all allocated clusters. */
790 * __ntfs_cluster_free - free clusters on an ntfs volume
791 * @ni: ntfs inode whose runlist describes the clusters to free
792 * @start_vcn: vcn in the runlist of @ni at which to start freeing clusters
793 * @count: number of clusters to free or -1 for all clusters
797 * Free @count clusters starting at the cluster @start_vcn in the runlist
800 * If @count is -1, all clusters from @start_vcn to the end of the runlist are
801 * deallocated. Thus, to completely free all clusters in a runlist, use
827 * Return the number of deallocated clusters (not counting sparse ones) on
899 /* The number of clusters in this run that need freeing. */
905 /* Do the actual freeing of the clusters in this run. */
914 /* We have freed @to_free real clusters. */
917 /* Go to the next run and adjust the number of clusters left to free. */
922 /* Keep track of the total "freed" clusters, including sparse ones. */
956 /* The number of clusters in this run that need freeing. */
962 /* Do the actual freeing of the clusters in the run. */
971 /* We have freed @to_free real clusters. */
974 /* Adjust the number of clusters left to free. */
978 /* Update the total done clusters. */
986 /* We are done. Return the number of actually freed clusters. */
992 /* If no real clusters were freed, no need to rollback. */