• Home
  • Raw
  • Download

Lines Matching full: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; in ntfs_cluster_alloc() local
252 /* Loop until all clusters are allocated, i.e. clusters == 0. */ in ntfs_cluster_alloc()
253 clusters = count; in ntfs_cluster_alloc()
267 /* Loop until we run out of free clusters. */ in ntfs_cluster_alloc()
414 if (!--clusters) { in ntfs_cluster_alloc()
697 ntfs_debug("No free clusters left, going to out."); in ntfs_cluster_alloc()
758 ntfs_error(vol->sb, "Failed to allocate clusters, aborting " in ntfs_cluster_alloc()
767 "clusters.", in ntfs_cluster_alloc()
769 (unsigned long long)(count - clusters)); in ntfs_cluster_alloc()
770 /* Deallocate all allocated clusters. */ in ntfs_cluster_alloc()
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. */ in __ntfs_cluster_free()
905 /* Do the actual freeing of the clusters in this run. */ in __ntfs_cluster_free()
914 /* We have freed @to_free real clusters. */ in __ntfs_cluster_free()
917 /* Go to the next run and adjust the number of clusters left to free. */ in __ntfs_cluster_free()
922 /* Keep track of the total "freed" clusters, including sparse ones. */ in __ntfs_cluster_free()
956 /* The number of clusters in this run that need freeing. */ in __ntfs_cluster_free()
962 /* Do the actual freeing of the clusters in the run. */ in __ntfs_cluster_free()
971 /* We have freed @to_free real clusters. */ in __ntfs_cluster_free()
974 /* Adjust the number of clusters left to free. */ in __ntfs_cluster_free()
978 /* Update the total done clusters. */ in __ntfs_cluster_free()
986 /* We are done. Return the number of actually freed clusters. */ in __ntfs_cluster_free()
992 /* If no real clusters were freed, no need to rollback. */ in __ntfs_cluster_free()