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;
374 " clusters (%lld)!\n",
412 if (!--clusters) {
545 ntfs_log_perror("Failed to allocate clusters");
572 * ntfs_cluster_free_from_rl - free clusters from runlist
573 * @vol: mounted ntfs volume on which to free the clusters
574 * @rl: runlist from which deallocate clusters
609 ntfs_log_error("Too many free clusters (%lld > %lld)!",
645 ntfs_log_error("Too many free clusters (%lld > %lld)!",
652 * ntfs_cluster_free - free clusters on an ntfs volume
653 * @vol: mounted ntfs volume on which to free the clusters
654 * @na: attribute whose runlist describes the clusters to free
655 * @start_vcn: vcn in @rl at which to start freeing clusters
656 * @count: number of clusters to free or -1 for all clusters
658 * Free @count clusters starting at the cluster @start_vcn in the runlist
661 * If @count is -1, all clusters from @start_vcn to the end of the runlist
664 * On success return the number of deallocated clusters (not counting sparse
665 * clusters) and on error return -1 with errno set to the error code.
701 /* The number of clusters in this run that need freeing. */
707 /* Do the actual freeing of the clusters in this run. */
715 /* Go to the next run and adjust the number of clusters left to free. */
735 /* The number of clusters in this run that need freeing. */
768 ntfs_log_error("Too many free clusters (%lld > %lld)!",