/linux-6.6.21/fs/f2fs/ |
D | compress.c | 63 return index & (cc->cluster_size - 1); in offset_in_cluster() 116 f2fs_drop_rpages(cc, cc->cluster_size, false); in f2fs_put_rpages() 129 for (i = 0; i < cc->cluster_size; i++) { in f2fs_put_rpages_wbc() 148 cc->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_init_compress_ctx() 154 page_array_free(cc->inode, cc->rpages, cc->cluster_size); in f2fs_destroy_compress_ctx() 634 cc->cluster_size, fi->i_compress_algorithm); in f2fs_compress_pages() 655 cc->rbuf = f2fs_vmap(cc->rpages, cc->cluster_size); in f2fs_compress_pages() 671 max_len = PAGE_SIZE * (cc->cluster_size - 1) - COMPRESS_HEADER_SIZE; in f2fs_compress_pages() 696 vm_unmap_ram(cc->rbuf, cc->cluster_size); in f2fs_compress_pages() 715 vm_unmap_ram(cc->rbuf, cc->cluster_size); in f2fs_compress_pages() [all …]
|
D | file.c | 566 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_truncate_data_blocks_range() local 580 !(cluster_index & (cluster_size - 1))) { in f2fs_truncate_data_blocks_range() 3436 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in release_compress_blocks() local 3456 for (i = 0; i < cluster_size; i++, dn->ofs_in_node++) { in release_compress_blocks() 3462 dn->ofs_in_node += cluster_size; in release_compress_blocks() 3478 cluster_size - compr_blocks); in release_compress_blocks() 3480 released_blocks += cluster_size - compr_blocks; in release_compress_blocks() 3482 count -= cluster_size; in release_compress_blocks() 3602 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in reserve_compress_blocks() local 3624 for (i = 0; i < cluster_size; i++, dn->ofs_in_node++) { in reserve_compress_blocks() [all …]
|
D | data.c | 1983 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_fiemap() local 2034 map.m_len = cluster_size - count_in_cluster; in f2fs_fiemap() 2081 unsigned int appended_blks = cluster_size - in f2fs_fiemap() 2096 if (count_in_cluster == cluster_size) { in f2fs_fiemap() 2262 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2303 for (i = 1; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2397 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2422 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_mpage_readpages() 3040 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_write_cache_pages()
|
/linux-6.6.21/drivers/soc/fsl/dpio/ |
D | dpio-driver.c | 57 int cluster_base, cluster_size; in dpaa2_dpio_get_cluster_sdest() local 61 cluster_size = 4; in dpaa2_dpio_get_cluster_sdest() 66 cluster_size = 2; in dpaa2_dpio_get_cluster_sdest() 72 return cluster_base + cpu / cluster_size; in dpaa2_dpio_get_cluster_sdest()
|
/linux-6.6.21/fs/ntfs/ |
D | super.c | 785 vol->cluster_size = vol->sector_size << sectors_per_cluster_bits; in parse_ntfs_boot_sector() 786 vol->cluster_size_mask = vol->cluster_size - 1; in parse_ntfs_boot_sector() 787 vol->cluster_size_bits = ffs(vol->cluster_size) - 1; in parse_ntfs_boot_sector() 788 ntfs_debug("vol->cluster_size = %i (0x%x)", vol->cluster_size, in parse_ntfs_boot_sector() 789 vol->cluster_size); in parse_ntfs_boot_sector() 792 if (vol->cluster_size < vol->sector_size) { in parse_ntfs_boot_sector() 795 "Sorry.", vol->cluster_size, vol->sector_size); in parse_ntfs_boot_sector() 802 vol->mft_record_size = vol->cluster_size << in parse_ntfs_boot_sector() 842 vol->index_record_size = vol->cluster_size << in parse_ntfs_boot_sector() 923 if (vol->cluster_size <= (4 << vol->mft_record_size_bits)) in parse_ntfs_boot_sector() [all …]
|
D | volume.h | 46 u32 cluster_size; /* in bytes */ member
|
D | file.c | 627 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 923 if (unlikely(vol->cluster_size < PAGE_SIZE)) { in ntfs_prepare_pages_for_non_resident_write() 924 bh_cend = (bh_end + vol->cluster_size - 1) >> in ntfs_prepare_pages_for_non_resident_write() 1136 ni->itype.compressed.size += vol->cluster_size; in ntfs_prepare_pages_for_non_resident_write() 1229 ni->itype.compressed.size += vol->cluster_size; in ntfs_prepare_pages_for_non_resident_write() 1765 if (vol->cluster_size > PAGE_SIZE && NInoNonResident(ni)) in ntfs_perform_write() 1766 nr_pages = vol->cluster_size >> PAGE_SHIFT; in ntfs_perform_write() 1811 bytes = vol->cluster_size - (pos & in ntfs_perform_write()
|
D | inode.c | 866 if (vol->cluster_size <= ni->itype.index.block_size) { in ntfs_read_locked_inode() 867 ni->itype.index.vcn_size = vol->cluster_size; in ntfs_read_locked_inode() 1035 if (vol->cluster_size > 4096) { in ntfs_read_locked_inode() 1042 vol->cluster_size); in ntfs_read_locked_inode() 1257 if (vol->cluster_size > 4096) { in ntfs_read_locked_attr_inode() 1262 vol->cluster_size); in ntfs_read_locked_attr_inode() 1576 if (vol->cluster_size <= ni->itype.index.block_size) { in ntfs_read_locked_index_inode() 1577 ni->itype.index.vcn_size = vol->cluster_size; in ntfs_read_locked_index_inode() 2424 new_alloc_size = (new_size + vol->cluster_size - 1) & in ntfs_truncate()
|
/linux-6.6.21/fs/fat/ |
D | file.c | 287 nr_cluster = (mm_bytes + (sbi->cluster_size - 1)) >> in fat_fallocate() 382 const unsigned int cluster_size = sbi->cluster_size; in fat_truncate_blocks() local 392 nr_clusters = (offset + (cluster_size - 1)) >> sbi->cluster_bits; in fat_truncate_blocks() 405 stat->blksize = sbi->cluster_size; in fat_getattr()
|
D | inode.c | 561 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_fill_inode() 562 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_fill_inode() 627 MSDOS_SB(inode->i_sb)->cluster_size)) { in fat_free_eofblocks() 835 buf->f_bsize = sbi->cluster_size; in fat_statfs() 1404 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_read_root() 1405 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_read_root() 1694 sbi->cluster_size = sb->s_blocksize * sbi->sec_per_clus; in fat_fill_super() 1695 sbi->cluster_bits = ffs(sbi->cluster_size) - 1; in fat_fill_super()
|
D | dir.c | 1215 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits; in fat_add_new_entries() 1387 if (dir->i_size & (sbi->cluster_size - 1)) { in fat_add_entries() 1389 dir->i_size = (dir->i_size + sbi->cluster_size - 1) in fat_add_entries() 1390 & ~((loff_t)sbi->cluster_size - 1); in fat_add_entries()
|
D | fat.h | 66 unsigned int cluster_size; /* cluster size */ member
|
/linux-6.6.21/fs/ntfs3/ |
D | super.c | 468 sbi->cluster_size, sbi->used.bitmap.nbits, in ntfs3_volinfo() 663 buf->f_bsize = sbi->cluster_size; in ntfs_statfs() 928 sbi->cluster_size = boot_sector_size * sct_per_clst; in ntfs_init_from_boot() 929 sbi->cluster_bits = cluster_bits = blksize_bits(sbi->cluster_size); in ntfs_init_from_boot() 930 sbi->cluster_mask = sbi->cluster_size - 1; in ntfs_init_from_boot() 1016 if (sbi->cluster_size < boot_sector_size) { in ntfs_init_from_boot() 1018 sbi->cluster_size); in ntfs_init_from_boot() 1023 if (sbi->cluster_size < sector_size) { in ntfs_init_from_boot() 1028 sbi->cluster_size, sector_size); in ntfs_init_from_boot() 1084 sb_set_blocksize(sb, min_t(u32, sbi->cluster_size, PAGE_SIZE)); in ntfs_init_from_boot() [all …]
|
D | attrib.c | 255 align = sbi->cluster_size; in attr_make_nonresident() 448 align = sbi->cluster_size; in attr_set_size() 1880 mask = (sbi->cluster_size << attr_b->nres.c_unit) - 1; in attr_collapse_range() 2151 mask = (sbi->cluster_size << attr_b->nres.c_unit) - 1; in attr_punch_hole() 2356 mask = (sbi->cluster_size << attr_b->nres.c_unit) - 1; in attr_insert_range()
|
D | file.c | 92 stat->blksize = ni->mi.sbi->cluster_size; /* 512, 1K, ..., 2M */ in ntfs_getattr() 441 sbi->cluster_size, PAGE_SIZE)); in ntfs_fallocate()
|
/linux-6.6.21/net/tipc/ |
D | monitor.h | 74 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
|
D | monitor.c | 724 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size) in tipc_nl_monitor_set_threshold() argument 728 if (cluster_size > TIPC_CLUSTER_SIZE) in tipc_nl_monitor_set_threshold() 731 tn->mon_threshold = cluster_size; in tipc_nl_monitor_set_threshold()
|
D | bcast.c | 99 int cluster_size = tipc_link_bc_peers(tipc_bc_sndlink(net)); in tipc_bcbase_calc_bc_threshold() local 101 bb->bc_threshold = 1 + (cluster_size * bb->rc_ratio / 100); in tipc_bcbase_calc_bc_threshold()
|
/linux-6.6.21/fs/ocfs2/ |
D | ocfs1_fs_compat.h | 46 /*160*/ __u64 cluster_size; member
|
/linux-6.6.21/fs/exfat/ |
D | file.c | 212 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9; in exfat_truncate() 240 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; in exfat_getattr()
|
D | super.c | 80 buf->f_bsize = sbi->cluster_size; in exfat_statfs() 367 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9; in exfat_read_root() 474 sbi->cluster_size = 1 << sbi->cluster_size_bits; in exfat_read_boot_sector()
|
D | exfat_fs.h | 91 #define EXFAT_CLU_OFFSET(off, sbi) ((off) & ((sbi)->cluster_size - 1)) 245 unsigned int cluster_size; /* cluster size in bytes */ member
|
D | namei.c | 407 ei->i_size_ondisk += sbi->cluster_size; in exfat_find_empty_entry() 408 ei->i_size_aligned += sbi->cluster_size; in exfat_find_empty_entry() 410 inode->i_blocks += sbi->cluster_size >> 9; in exfat_find_empty_entry() 526 clu_size = sbi->cluster_size; in exfat_add_entry()
|
D | balloc.c | 285 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs()
|
/linux-6.6.21/include/trace/events/ |
D | f2fs.h | 1869 unsigned int cluster_size, unsigned char algtype), 1871 TP_ARGS(inode, cluster_idx, cluster_size, algtype), 1885 __entry->size = cluster_size; 1931 unsigned int cluster_size, unsigned char algtype), 1933 TP_ARGS(inode, cluster_idx, cluster_size, algtype) 1939 unsigned int cluster_size, unsigned char algtype), 1941 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
|