Lines Matching refs:vol
15 int ntfs_trim_fs(struct ntfs_volume *vol, struct fstrim_range *range) in ntfs_trim_fs() argument
24 u64 start_cluster = ntfs_bytes_to_cluster(vol, range->start); in ntfs_trim_fs()
25 u32 dq = bdev_discard_granularity(vol->sb->s_bdev); in ntfs_trim_fs()
29 dq = vol->cluster_size; in ntfs_trim_fs()
31 if (start_cluster >= vol->nr_clusters) in ntfs_trim_fs()
35 end_cluster = vol->nr_clusters; in ntfs_trim_fs()
37 end_cluster = ntfs_bytes_to_cluster(vol, in ntfs_trim_fs()
38 (range->start + range->len + vol->cluster_size - 1)); in ntfs_trim_fs()
39 if (end_cluster > vol->nr_clusters) in ntfs_trim_fs()
40 end_cluster = vol->nr_clusters; in ntfs_trim_fs()
52 folio = ntfs_get_locked_folio(vol->lcnbmp_ino->i_mapping, in ntfs_trim_fs()
76 aligned_start = ALIGN(ntfs_cluster_to_bytes(vol, start), dq); in ntfs_trim_fs()
78 ALIGN_DOWN(ntfs_cluster_to_bytes(vol, end - start), dq); in ntfs_trim_fs()
80 ret = blkdev_issue_discard(vol->sb->s_bdev, aligned_start >> 9, in ntfs_trim_fs()
131 struct ntfs_volume *vol = ni->vol; in __ntfs_bitmap_set_bits_in_run() local
173 ntfs_set_lcn_empty_bits(vol, index, value, min_t(s64, 8 - bit, cnt)); in __ntfs_bitmap_set_bits_in_run()
196 ntfs_set_lcn_empty_bits(vol, index, value, len << 3); in __ntfs_bitmap_set_bits_in_run()
233 ntfs_set_lcn_empty_bits(vol, index, value, len << 3); in __ntfs_bitmap_set_bits_in_run()
248 ntfs_set_lcn_empty_bits(vol, index, value, bit); in __ntfs_bitmap_set_bits_in_run()