Lines Matching refs:clusters

196  * ntfs_cluster_alloc - allocate clusters on an ntfs volume
197 * @vol: mounted ntfs volume on which to allocate the clusters
199 * @count: number of clusters to allocate
200 * @start_lcn: starting lcn at which to allocate the clusters (or -1 if none)
201 * @zone: zone from which to allocate the clusters
203 * Allocate @count clusters preferably starting at cluster @start_lcn or at the
205 * @vol. @zone is either DATA_ZONE for allocation of normal clusters and
206 * MFT_ZONE for allocation of clusters for the master file table, i.e. the
242 s64 clusters, br;
312 /* Loop until all clusters are allocated. */
313 clusters = count;
372 ntfs_log_error("Non-positive free clusters "
410 if (!--clusters) {
543 ntfs_log_perror("Failed to allocate clusters");
570 * ntfs_cluster_free_from_rl - free clusters from runlist
571 * @vol: mounted ntfs volume on which to free the clusters
572 * @rl: runlist from which deallocate clusters
606 ntfs_log_error("Too many free clusters (%lld > %lld)!",
642 ntfs_log_error("Too many free clusters (%lld > %lld)!",
649 * ntfs_cluster_free - free clusters on an ntfs volume
650 * @vol: mounted ntfs volume on which to free the clusters
651 * @na: attribute whose runlist describes the clusters to free
652 * @start_vcn: vcn in @rl at which to start freeing clusters
653 * @count: number of clusters to free or -1 for all clusters
655 * Free @count clusters starting at the cluster @start_vcn in the runlist
658 * If @count is -1, all clusters from @start_vcn to the end of the runlist
661 * On success return the number of deallocated clusters (not counting sparse
662 * clusters) and on error return -1 with errno set to the error code.
698 /* The number of clusters in this run that need freeing. */
704 /* Do the actual freeing of the clusters in this run. */
712 /* Go to the next run and adjust the number of clusters left to free. */
732 /* The number of clusters in this run that need freeing. */
765 ntfs_log_error("Too many free clusters (%lld > %lld)!",