| /linux/fs/ntfs/ |
| H A D | volume.h | 117 s64 nr_clusters; member 281 static __always_inline void ntfs_hold_dirty_clusters(struct ntfs_volume *vol, s64 nr_clusters) in ntfs_hold_dirty_clusters() argument 283 atomic64_add(nr_clusters, &vol->dirty_clusters); in ntfs_hold_dirty_clusters() 286 static __always_inline void ntfs_release_dirty_clusters(struct ntfs_volume *vol, s64 nr_clusters) in ntfs_release_dirty_clusters() argument 288 if (atomic64_read(&vol->dirty_clusters) < nr_clusters) in ntfs_release_dirty_clusters() 291 atomic64_sub(nr_clusters, &vol->dirty_clusters); in ntfs_release_dirty_clusters() 294 s64 ntfs_available_clusters_count(struct ntfs_volume *vol, s64 nr_clusters);
|
| H A D | bitmap.c | 31 if (start_cluster >= vol->nr_clusters) in ntfs_trim_fs() 35 end_cluster = vol->nr_clusters; 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()
|
| H A D | attrlist.c | 77 s64 data_size, alloc_size, nr_clusters, written; in ntfs_attrlist_repack() local 111 nr_clusters = ntfs_bytes_to_cluster(vol, in ntfs_attrlist_repack() 113 if (nr_clusters <= 0) { in ntfs_attrlist_repack() 119 new_rl = ntfs_cluster_alloc(vol, 0, nr_clusters, -1, DATA_ZONE, in ntfs_attrlist_repack() 127 if (new_rl->vcn == 0 && new_rl->length == nr_clusters && in ntfs_attrlist_repack() 145 attr_ni->allocated_size = ntfs_cluster_to_bytes(vol, nr_clusters); in ntfs_attrlist_repack()
|
| H A D | super.c | 762 vol->nr_clusters = ll; in parse_ntfs_boot_sector() 763 ntfs_debug("vol->nr_clusters = 0x%llx", vol->nr_clusters); in parse_ntfs_boot_sector() 765 if (ll >= (u64)vol->nr_clusters) { in parse_ntfs_boot_sector() 773 if (ll >= (u64)vol->nr_clusters) { in parse_ntfs_boot_sector() 831 mft_zone_size = vol->nr_clusters; in ntfs_setup_allocators() 873 while (vol->mft_zone_end >= vol->nr_clusters) { in ntfs_setup_allocators() 1459 if ((vol->nr_clusters + 7) >> 3 > i_size_read(vol->lcnbmp_ino)) { in load_system_files() 1897 s64 nr_free = vol->nr_clusters; in get_nr_free_clusters() 1917 max_index = (((vol->nr_clusters + 7) >> 3) + PAGE_SIZE - 1) >> in get_nr_free_clusters() 1959 if (vol->nr_clusters & 63) in get_nr_free_clusters() [all …]
|
| H A D | lcnalloc.c | 285 zone_end = vol->nr_clusters; in ntfs_cluster_alloc() 306 ((s64)vol->nr_clusters + 7) >> 3); in ntfs_cluster_alloc() 476 if (tc >= vol->nr_clusters) in ntfs_cluster_alloc() 600 zone_end = vol->nr_clusters; in ntfs_cluster_alloc() 619 if (tc >= vol->nr_clusters) in ntfs_cluster_alloc()
|
| H A D | runlist.c | 907 if (unlikely(lcn >= (s64)vol->nr_clusters)) { in ntfs_mapping_pairs_decompress() 934 if (unlikely(run_end > (s64)vol->nr_clusters)) { in ntfs_mapping_pairs_decompress()
|
| H A D | attrib.c | 5263 do_div(free, vol->nr_clusters); in ntfs_attr_map_cluster() 5469 bmp_ni->data_size > ((ni->vol->nr_clusters + 7) >> 3))) { in ntfs_attr_readall()
|
| /linux/fs/exfat/ |
| H A D | exfat_fs.h | 416 u32 nr_clusters) in exfat_cluster_to_bytes() argument 418 return (loff_t)nr_clusters << sbi->cluster_size_bits; in exfat_cluster_to_bytes() 422 u32 nr_clusters) in exfat_cluster_to_sectors() argument 424 return (blkcnt_t)nr_clusters << (sbi->cluster_size_bits - 9); in exfat_cluster_to_sectors() 489 u32 nr_clusters) in exfat_cluster_to_dentries() argument 491 return (u64)nr_clusters << (sbi->cluster_size_bits - DENTRY_SIZE_BITS); in exfat_cluster_to_dentries()
|
| /linux/fs/fat/ |
| H A D | file.c | 386 int nr_clusters; in fat_truncate_blocks() local 395 nr_clusters = (offset + (cluster_size - 1)) >> sbi->cluster_bits; in fat_truncate_blocks() 397 fat_free(inode, nr_clusters); in fat_truncate_blocks()
|
| /linux/mm/ |
| H A D | swapfile.c | 3081 int i, nr_clusters = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); 3085 for (i = 0; i < nr_clusters; i++) { in SYSCALL_DEFINE1() 3575 unsigned long nr_clusters = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); in setup_swap_clusters_info() 3580 cluster_info = kvzalloc_objs(*cluster_info, nr_clusters); in setup_swap_clusters_info() 3584 for (i = 0; i < nr_clusters; i++) in setup_swap_clusters_info() 3632 for (i = 0; i < nr_clusters; i++) { in SYSCALL_DEFINE2() 3043 int i, nr_clusters = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); free_swap_cluster_info() local 3537 unsigned long nr_clusters = DIV_ROUND_UP(maxpages, SWAPFILE_CLUSTER); setup_swap_clusters_info() local
|
| /linux/drivers/gpu/drm/msm/adreno/ |
| H A D | a6xx_gpu_state.c | 42 int nr_clusters; member 837 a6xx_state->nr_clusters = ARRAY_SIZE(a6xx_clusters); in a6xx_get_clusters() 876 a6xx_state->nr_clusters = clusters_size; in a7xx_get_clusters() 2119 for (i = 0; i < a6xx_state->nr_clusters; i++) { in a6xx_show()
|
| /linux/fs/ocfs2/ |
| H A D | file.c | 1561 u32 cluster, p_cluster, nr_clusters; in ocfs2_zeroout_partial_cluster() local 1576 &nr_clusters, NULL); in ocfs2_zeroout_partial_cluster()
|