| /linux/fs/f2fs/ |
| H A D | compress.c | 61 return index & (cc->cluster_size - 1); in offset_in_cluster() 114 f2fs_drop_rpages(cc, cc->cluster_size, false); in f2fs_put_rpages() 127 for (i = 0; i < cc->cluster_size; i++) { in f2fs_put_rpages_wbc() 148 cc->rpages = page_array_alloc(F2FS_I_SB(cc->inode), cc->cluster_size); in f2fs_init_compress_ctx() 154 page_array_free(F2FS_I_SB(cc->inode), cc->rpages, cc->cluster_size); in f2fs_destroy_compress_ctx() 630 cc->cluster_size, fi->i_compress_algorithm); in f2fs_compress_pages() 651 cc->rbuf = f2fs_vmap(cc->rpages, cc->cluster_size); in f2fs_compress_pages() 667 max_len = PAGE_SIZE * (cc->cluster_size - 1) - COMPRESS_HEADER_SIZE; in f2fs_compress_pages() 691 vm_unmap_ram(cc->rbuf, cc->cluster_size); in f2fs_compress_pages() 710 vm_unmap_ram(cc->rbuf, cc->cluster_size); in f2fs_compress_pages() [all …]
|
| H A D | file.c | 651 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_truncate_data_blocks_range() local 664 !(cluster_index & (cluster_size - 1))) { in f2fs_truncate_data_blocks_range() 3784 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in release_compress_blocks() local 3802 for (i = 0; i < cluster_size; i++, dn->ofs_in_node++) { in release_compress_blocks() 3808 dn->ofs_in_node += cluster_size; in release_compress_blocks() 3823 cluster_size - compr_blocks); in release_compress_blocks() 3825 released_blocks += cluster_size - compr_blocks; in release_compress_blocks() 3827 count -= cluster_size; in release_compress_blocks() 3953 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in reserve_compress_blocks() local 3974 for (i = 0; i < cluster_size; i++) { in reserve_compress_blocks() [all …]
|
| H A D | data.c | 1906 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_fiemap() local 1956 map.m_len = cluster_size - count_in_cluster; in f2fs_fiemap() 2013 unsigned int appended_blks = cluster_size - in f2fs_fiemap() 2028 if (count_in_cluster == cluster_size) { in f2fs_fiemap() 2198 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2238 for (i = 1; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2324 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2349 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_mpage_readpages() 2366 max_nr_pages = round_up(index + nr_pages, cc.cluster_size) - in f2fs_mpage_readpages() 2367 round_down(index, cc.cluster_size); in f2fs_mpage_readpages() [all …]
|
| H A D | node.c | 899 unsigned int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_get_dnode_of_data() local 906 if (fofs % cluster_size) { in f2fs_get_dnode_of_data() 907 fofs = round_down(fofs, cluster_size); in f2fs_get_dnode_of_data() 908 ofs_in_node = round_down(ofs_in_node, cluster_size); in f2fs_get_dnode_of_data() 921 fofs, blkaddr, cluster_size, c_len); in f2fs_get_dnode_of_data()
|
| H A D | f2fs.h | 1593 unsigned int cluster_size; /* page count in cluster */ member 1623 unsigned int cluster_size; /* page count in cluster */ member
|
| /linux/drivers/soc/fsl/dpio/ |
| H A 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/fs/fat/ |
| H A 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()
|
| H A D | inode.c | 563 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_fill_inode() 564 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_fill_inode() 633 MSDOS_SB(inode->i_sb)->cluster_size)) { in fat_free_eofblocks() 843 buf->f_bsize = sbi->cluster_size; in fat_statfs() 1340 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_read_root() 1341 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_read_root() 1654 sbi->cluster_size = sb->s_blocksize * sbi->sec_per_clus; in fat_fill_super() 1655 sbi->cluster_bits = ffs(sbi->cluster_size) - 1; in fat_fill_super()
|
| H A D | dir.c | 1227 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits; in fat_add_new_entries() 1398 if (dir->i_size & (sbi->cluster_size - 1)) { in fat_add_entries() 1400 dir->i_size = (dir->i_size + sbi->cluster_size - 1) in fat_add_entries() 1401 & ~((loff_t)sbi->cluster_size - 1); in fat_add_entries()
|
| H A D | fat.h | 69 unsigned int cluster_size; /* cluster size */ member
|
| H A D | fatent.c | 783 if (ent_start >= sbi->max_cluster || range->len < sbi->cluster_size) in fat_trim_fs()
|
| /linux/net/tipc/ |
| H A D | monitor.h | 74 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
|
| H A D | monitor.c | 725 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size) in tipc_nl_monitor_set_threshold() argument 729 if (cluster_size > TIPC_CLUSTER_SIZE) in tipc_nl_monitor_set_threshold() 732 tn->mon_threshold = cluster_size; in tipc_nl_monitor_set_threshold()
|
| H 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/ |
| H A D | ocfs1_fs_compat.h | 46 /*160*/ __u64 cluster_size; member
|
| /linux/fs/exfat/ |
| H A D | file.c | 79 inode->i_blocks = round_up(size, sbi->cluster_size) >> 9; in exfat_cont_expand() 263 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9; in exfat_truncate() 280 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; in exfat_getattr()
|
| H A D | super.c | 62 buf->f_bsize = sbi->cluster_size; in exfat_statfs() 387 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9; in exfat_read_root() 495 sbi->cluster_size = 1 << sbi->cluster_size_bits; in exfat_read_boot_sector()
|
| H A D | exfat_fs.h | 89 #define EXFAT_CLU_OFFSET(off, sbi) ((off) & ((sbi)->cluster_size - 1)) 250 unsigned int cluster_size; /* cluster size in bytes */ member
|
| H A D | namei.c | 388 ei->valid_size += sbi->cluster_size; in exfat_find_empty_entry() 390 inode->i_blocks += sbi->cluster_size >> 9; in exfat_find_empty_entry() 504 clu_size = sbi->cluster_size; in exfat_add_entry()
|
| H A D | balloc.c | 341 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs()
|
| H A D | inode.c | 665 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9; in exfat_fill_inode()
|
| /linux/include/trace/events/ |
| H A D | f2fs.h | 2006 unsigned int cluster_size, unsigned char algtype), 2008 TP_ARGS(inode, cluster_idx, cluster_size, algtype), 2022 __entry->size = cluster_size; 2068 unsigned int cluster_size, unsigned char algtype), 2070 TP_ARGS(inode, cluster_idx, cluster_size, algtype) 2076 unsigned int cluster_size, unsigned char algtype), 2078 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
|
| /linux/fs/ntfs3/ |
| H A D | file.c | 164 stat->blksize = ni->mi.sbi->cluster_size; /* 512, 1K, ..., 2M */ in ntfs_getattr() 574 sbi->cluster_size, PAGE_SIZE)); in ntfs_fallocate()
|
| /linux/arch/x86/kvm/ |
| H A D | lapic.c | 167 u8 cluster_size = min(max_apic_id - offset + 1, 16U); in kvm_apic_map_get_logical_dest() local 171 *mask = dest_id & (0xffff >> (16 - cluster_size)); in kvm_apic_map_get_logical_dest() 836 int cluster_size = op_64_bit ? 64 : 32; in kvm_pv_send_ipi() local 853 min += cluster_size; in kvm_pv_send_ipi()
|