/linux/fs/f2fs/ |
A D | compress.c | 62 return index & (cc->cluster_size - 1); in offset_in_cluster() 128 for (i = 0; i < cc->cluster_size; i++) { in f2fs_put_rpages_wbc() 935 if (dn->ofs_in_node % cluster_size) { in f2fs_sanity_check_cluster() 940 for (i = 1; i < cluster_size; i++) { in f2fs_sanity_check_cluster() 996 for (i = 1; i < cluster_size; i++) { in __f2fs_cluster_blocks() 1011 !compr && ret != cluster_size && in __f2fs_cluster_blocks() 1060 for (i = 0; i < cc->cluster_size; i++) in set_cluster_dirty() 1141 return cc->cluster_size; in prepare_compress_overwrite() 1316 cic->nr_rpages = cc->cluster_size; in f2fs_write_compressed_pages() 1599 dic->cluster_size = cc->cluster_size; in f2fs_alloc_dic() [all …]
|
A D | file.c | 577 !(cluster_index & (cluster_size - 1))) { in f2fs_truncate_data_blocks_range() 3384 dn->ofs_in_node += cluster_size; in release_compress_blocks() 3400 cluster_size - compr_blocks); in release_compress_blocks() 3402 released_blocks += cluster_size - compr_blocks; in release_compress_blocks() 3404 count -= cluster_size; in release_compress_blocks() 3548 dn->ofs_in_node += cluster_size; in reserve_compress_blocks() 3561 reserved = cluster_size - compr_blocks; in reserve_compress_blocks() 3566 if (reserved != cluster_size - compr_blocks) in reserve_compress_blocks() 3573 count -= cluster_size; in reserve_compress_blocks() 4021 int len = min(cluster_size, count); in f2fs_ioc_decompress_file() [all …]
|
A D | data.c | 1935 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_fiemap() local 1986 map.m_len = cluster_size - count_in_cluster; in f2fs_fiemap() 2033 unsigned int appended_blks = cluster_size - in f2fs_fiemap() 2048 if (count_in_cluster == cluster_size) { in f2fs_fiemap() 2226 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2263 for (i = 1; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2357 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2383 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_mpage_readpages() 2985 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_write_cache_pages()
|
/linux/drivers/soc/fsl/dpio/ |
A D | dpio-driver.c | 58 int cluster_base, cluster_size; in dpaa2_dpio_get_cluster_sdest() local 62 cluster_size = 4; in dpaa2_dpio_get_cluster_sdest() 67 cluster_size = 2; in dpaa2_dpio_get_cluster_sdest() 73 return cluster_base + cpu / cluster_size; in dpaa2_dpio_get_cluster_sdest()
|
/linux/fs/ntfs/ |
A D | super.c | 778 vol->cluster_size_mask = vol->cluster_size - 1; in parse_ntfs_boot_sector() 781 vol->cluster_size); in parse_ntfs_boot_sector() 784 if (vol->cluster_size < vol->sector_size) { in parse_ntfs_boot_sector() 794 vol->mft_record_size = vol->cluster_size << in parse_ntfs_boot_sector() 834 vol->index_record_size = vol->cluster_size << in parse_ntfs_boot_sector() 918 vol->mftmirr_size = vol->cluster_size >> in parse_ntfs_boot_sector() 974 mft_lcn = (8192 + 2 * vol->cluster_size - 1) / vol->cluster_size; in ntfs_setup_allocators() 975 if (mft_lcn * vol->cluster_size < 16 * 1024) in ntfs_setup_allocators() 976 mft_lcn = (16 * 1024 + vol->cluster_size - 1) / in ntfs_setup_allocators() 977 vol->cluster_size; in ntfs_setup_allocators() [all …]
|
A D | file.c | 632 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 928 if (unlikely(vol->cluster_size < PAGE_SIZE)) { in ntfs_prepare_pages_for_non_resident_write() 929 bh_cend = (bh_end + vol->cluster_size - 1) >> in ntfs_prepare_pages_for_non_resident_write() 1141 ni->itype.compressed.size += vol->cluster_size; in ntfs_prepare_pages_for_non_resident_write() 1234 ni->itype.compressed.size += vol->cluster_size; in ntfs_prepare_pages_for_non_resident_write() 1770 if (vol->cluster_size > PAGE_SIZE && NInoNonResident(ni)) in ntfs_perform_write() 1771 nr_pages = vol->cluster_size >> PAGE_SHIFT; in ntfs_perform_write() 1816 bytes = vol->cluster_size - (pos & in ntfs_perform_write()
|
A D | volume.h | 46 u32 cluster_size; /* in bytes */ member
|
A 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() 2413 new_alloc_size = (new_size + vol->cluster_size - 1) & in ntfs_truncate()
|
/linux/fs/fat/ |
A D | file.c | 286 nr_cluster = (mm_bytes + (sbi->cluster_size - 1)) >> in fat_fallocate() 381 const unsigned int cluster_size = sbi->cluster_size; in fat_truncate_blocks() local 391 nr_clusters = (offset + (cluster_size - 1)) >> sbi->cluster_bits; in fat_truncate_blocks() 402 stat->blksize = MSDOS_SB(inode->i_sb)->cluster_size; in fat_getattr()
|
A D | inode.c | 565 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_fill_inode() 566 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_fill_inode() 630 MSDOS_SB(inode->i_sb)->cluster_size)) { in fat_free_eofblocks() 836 buf->f_bsize = sbi->cluster_size; in fat_statfs() 1405 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_read_root() 1406 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_read_root() 1696 sbi->cluster_size = sb->s_blocksize * sbi->sec_per_clus; in fat_fill_super() 1697 sbi->cluster_bits = ffs(sbi->cluster_size) - 1; in fat_fill_super()
|
A 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()
|
A D | fat.h | 66 unsigned int cluster_size; /* cluster size */ member
|
/linux/fs/ntfs3/ |
A D | super.c | 498 buf->f_bsize = sbi->cluster_size; in ntfs_statfs() 760 sbi->cluster_size = boot_sector_size * sct_per_clst; in ntfs_init_from_boot() 761 sbi->cluster_bits = blksize_bits(sbi->cluster_size); in ntfs_init_from_boot() 767 if (sbi->cluster_size < boot_sector_size) in ntfs_init_from_boot() 771 if (sbi->cluster_size < sector_size) { in ntfs_init_from_boot() 776 sbi->cluster_size, sector_size); in ntfs_init_from_boot() 780 sbi->cluster_mask = sbi->cluster_size - 1; in ntfs_init_from_boot() 849 sb_set_blocksize(sb, min_t(u32, sbi->cluster_size, PAGE_SIZE)); in ntfs_init_from_boot() 852 sbi->blocks_per_cluster = sbi->cluster_size >> sb->s_blocksize_bits; in ntfs_init_from_boot()
|
A D | attrib.c | 262 align = sbi->cluster_size; in attr_make_nonresident() 448 align = sbi->cluster_size; in attr_set_size() 1705 mask = (sbi->cluster_size << attr_b->nres.c_unit) - 1; in attr_collapse_range() 1975 mask = (sbi->cluster_size << attr_b->nres.c_unit) - 1; in attr_punch_hole()
|
/linux/fs/exfat/ |
A D | file.c | 254 inode->i_blocks = ((i_size_read(inode) + (sbi->cluster_size - 1)) & in exfat_truncate() 255 ~(sbi->cluster_size - 1)) >> inode->i_blkbits; in exfat_truncate() 283 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; in exfat_getattr()
|
A D | super.c | 88 buf->f_bsize = sbi->cluster_size; in exfat_statfs() 367 inode->i_blocks = ((i_size_read(inode) + (sbi->cluster_size - 1)) in exfat_read_root() 368 & ~(sbi->cluster_size - 1)) >> inode->i_blkbits; in exfat_read_root() 476 sbi->cluster_size = 1 << sbi->cluster_size_bits; in exfat_read_boot_sector()
|
A D | exfat_fs.h | 85 #define EXFAT_CLU_OFFSET(off, sbi) ((off) & ((sbi)->cluster_size - 1)) 217 unsigned int cluster_size; /* cluster size in bytes */ member
|
A D | inode.c | 606 inode->i_blocks = ((i_size_read(inode) + (sbi->cluster_size - 1)) & in exfat_fill_inode() 607 ~((loff_t)sbi->cluster_size - 1)) >> inode->i_blkbits; in exfat_fill_inode()
|
A D | balloc.c | 281 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs()
|
A D | namei.c | 398 EXFAT_I(inode)->i_size_ondisk += sbi->cluster_size; in exfat_find_empty_entry() 399 EXFAT_I(inode)->i_size_aligned += sbi->cluster_size; in exfat_find_empty_entry() 505 clu_size = sbi->cluster_size; in exfat_add_entry()
|
/linux/net/tipc/ |
A D | monitor.h | 74 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
|
A D | monitor.c | 722 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size) in tipc_nl_monitor_set_threshold() argument 726 if (cluster_size > TIPC_CLUSTER_SIZE) in tipc_nl_monitor_set_threshold() 729 tn->mon_threshold = cluster_size; in tipc_nl_monitor_set_threshold()
|
A 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/fs/ocfs2/ |
A D | ocfs1_fs_compat.h | 46 /*160*/ __u64 cluster_size; member
|
/linux/include/trace/events/ |
A D | f2fs.h | 1741 unsigned int cluster_size, unsigned char algtype), 1743 TP_ARGS(inode, cluster_idx, cluster_size, algtype), 1757 __entry->size = cluster_size; 1803 unsigned int cluster_size, unsigned char algtype), 1805 TP_ARGS(inode, cluster_idx, cluster_size, algtype) 1811 unsigned int cluster_size, unsigned char algtype), 1813 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
|