Lines Matching defs:count

199  * @count:	number of clusters to allocate
203 * Allocate @count clusters preferably starting at cluster @start_lcn or at the
235 runlist *ntfs_cluster_alloc(ntfs_volume *vol, VCN start_vcn, s64 count,
251 ntfs_log_enter("Entering with count = 0x%llx, start_lcn = 0x%llx, "
252 "zone = %s_ZONE.\n", (long long)count, (long long)
255 if (!vol || count < 0 || start_lcn < -1 || !vol->lcnbmp_na ||
258 ntfs_log_perror("%s: vcn: %lld, count: %lld, lcn: %lld",
260 (long long)count, (long long)start_lcn);
264 /* Return empty runlist if @count == 0 */
265 if (!count) {
313 clusters = count;
620 int ntfs_cluster_free_basic(ntfs_volume *vol, s64 lcn, s64 count)
627 (long long)lcn, (long long)count);
632 count)) {
636 (long long)count);
639 nr_freed += count;
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
667 int ntfs_cluster_free(ntfs_volume *vol, ntfs_attr *na, VCN start_vcn, s64 count)
674 (count < 0 && count != -1)) {
680 ntfs_log_enter("Entering for inode 0x%llx, attr 0x%x, count 0x%llx, "
682 le32_to_cpu(na->type), (long long)count, (long long)start_vcn);
703 if (count >= 0 && to_free > count)
704 to_free = count;
717 if (count >= 0)
718 count -= to_free;
721 * Loop over the remaining runs, using @count as a capping value, and
724 for (; rl->length && count != 0; ++rl) {
737 if (count >= 0 && to_free > count)
738 to_free = count;
752 if (count >= 0)
753 count -= to_free;
756 if (count != -1 && count != 0) {
759 ntfs_log_perror("%s: count still not zero (%lld)", __FUNCTION__,
760 (long long)count);