Home
last modified time | relevance | path

Searched refs:cluster_size (Results 1 – 25 of 38) sorted by relevance

12

/linux-5.19.10/fs/f2fs/
Dcompress.c62 return index & (cc->cluster_size - 1); in offset_in_cluster()
115 f2fs_drop_rpages(cc, cc->cluster_size, false); in f2fs_put_rpages()
128 for (i = 0; i < cc->cluster_size; i++) { in f2fs_put_rpages_wbc()
147 cc->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_init_compress_ctx()
153 page_array_free(cc->inode, cc->rpages, cc->cluster_size); in f2fs_destroy_compress_ctx()
627 cc->cluster_size, fi->i_compress_algorithm); in f2fs_compress_pages()
653 cc->rbuf = f2fs_vmap(cc->rpages, cc->cluster_size); in f2fs_compress_pages()
669 max_len = PAGE_SIZE * (cc->cluster_size - 1) - COMPRESS_HEADER_SIZE; in f2fs_compress_pages()
694 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 …]
Dfile.c565 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_truncate_data_blocks_range() local
579 !(cluster_index & (cluster_size - 1))) { in f2fs_truncate_data_blocks_range()
3321 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in release_compress_blocks() local
3339 for (i = 0; i < cluster_size; i++, dn->ofs_in_node++) { in release_compress_blocks()
3345 dn->ofs_in_node += cluster_size; in release_compress_blocks()
3361 cluster_size - compr_blocks); in release_compress_blocks()
3363 released_blocks += cluster_size - compr_blocks; in release_compress_blocks()
3365 count -= cluster_size; in release_compress_blocks()
3483 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in reserve_compress_blocks() local
3503 for (i = 0; i < cluster_size; i++, dn->ofs_in_node++) { in reserve_compress_blocks()
[all …]
Ddata.c1867 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_fiemap() local
1918 map.m_len = cluster_size - count_in_cluster; in f2fs_fiemap()
1965 unsigned int appended_blks = cluster_size - in f2fs_fiemap()
1980 if (count_in_cluster == cluster_size) { in f2fs_fiemap()
2146 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2183 for (i = 1; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2277 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2303 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_mpage_readpages()
2916 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_write_cache_pages()
/linux-5.19.10/drivers/soc/fsl/dpio/
Ddpio-driver.c58 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-5.19.10/fs/ntfs/
Dsuper.c777 vol->cluster_size = vol->sector_size << sectors_per_cluster_bits; in parse_ntfs_boot_sector()
778 vol->cluster_size_mask = vol->cluster_size - 1; in parse_ntfs_boot_sector()
779 vol->cluster_size_bits = ffs(vol->cluster_size) - 1; in parse_ntfs_boot_sector()
780 ntfs_debug("vol->cluster_size = %i (0x%x)", vol->cluster_size, 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()
787 "Sorry.", 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()
915 if (vol->cluster_size <= (4 << vol->mft_record_size_bits)) in parse_ntfs_boot_sector()
[all …]
Dvolume.h46 u32 cluster_size; /* in bytes */ member
Dfile.c632 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()
Dinode.c866 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()
2417 new_alloc_size = (new_size + vol->cluster_size - 1) & in ntfs_truncate()
/linux-5.19.10/fs/fat/
Dfile.c286 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()
404 stat->blksize = sbi->cluster_size; in fat_getattr()
Dinode.c566 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_fill_inode()
567 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_fill_inode()
632 MSDOS_SB(inode->i_sb)->cluster_size)) { in fat_free_eofblocks()
840 buf->f_bsize = sbi->cluster_size; in fat_statfs()
1409 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_read_root()
1410 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_read_root()
1700 sbi->cluster_size = sb->s_blocksize * sbi->sec_per_clus; in fat_fill_super()
1701 sbi->cluster_bits = ffs(sbi->cluster_size) - 1; in fat_fill_super()
Ddir.c1215 *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()
Dfat.h66 unsigned int cluster_size; /* cluster size */ member
/linux-5.19.10/fs/ntfs3/
Dsuper.c499 buf->f_bsize = sbi->cluster_size; in ntfs_statfs()
765 sbi->cluster_size = boot_sector_size * sct_per_clst; in ntfs_init_from_boot()
766 sbi->cluster_bits = blksize_bits(sbi->cluster_size); in ntfs_init_from_boot()
772 if (sbi->cluster_size < boot_sector_size) in ntfs_init_from_boot()
776 if (sbi->cluster_size < sector_size) { in ntfs_init_from_boot()
781 sbi->cluster_size, sector_size); in ntfs_init_from_boot()
785 sbi->cluster_mask = sbi->cluster_size - 1; in ntfs_init_from_boot()
854 sb_set_blocksize(sb, min_t(u32, sbi->cluster_size, PAGE_SIZE)); in ntfs_init_from_boot()
857 sbi->blocks_per_cluster = sbi->cluster_size >> sb->s_blocksize_bits; in ntfs_init_from_boot()
Dattrib.c262 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()
Dfrecord.c2530 if (sbi->cluster_size > NTFS_LZNT_MAX_CLUSTER) { in ni_read_frame()
2553 frame_size = sbi->cluster_size << NTFS_LZNT_CUNIT; in ni_read_frame()
2673 u32 frame_size = sbi->cluster_size << NTFS_LZNT_CUNIT; in ni_write_frame()
2698 if (sbi->cluster_size > NTFS_LZNT_MAX_CLUSTER) { in ni_write_frame()
2778 if (compr_size + sbi->cluster_size > frame_size) { in ni_write_frame()
/linux-5.19.10/net/tipc/
Dmonitor.h74 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
Dmonitor.c724 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()
Dbcast.c99 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-5.19.10/fs/ocfs2/
Docfs1_fs_compat.h46 /*160*/ __u64 cluster_size; member
/linux-5.19.10/fs/exfat/
Dfile.c252 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> in exfat_truncate()
281 stat->blksize = EXFAT_SB(inode->i_sb)->cluster_size; in exfat_getattr()
Dsuper.c89 buf->f_bsize = sbi->cluster_size; in exfat_statfs()
376 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> in exfat_read_root()
485 sbi->cluster_size = 1 << sbi->cluster_size_bits; in exfat_read_boot_sector()
Dexfat_fs.h84 #define EXFAT_CLU_OFFSET(off, sbi) ((off) & ((sbi)->cluster_size - 1))
218 unsigned int cluster_size; /* cluster size in bytes */ member
Dballoc.c285 if (clu_start >= sbi->num_clusters || range->len < sbi->cluster_size) in exfat_trim_fs()
Dnamei.c407 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()
526 clu_size = sbi->cluster_size; in exfat_add_entry()
/linux-5.19.10/include/trace/events/
Df2fs.h1722 unsigned int cluster_size, unsigned char algtype),
1724 TP_ARGS(inode, cluster_idx, cluster_size, algtype),
1738 __entry->size = cluster_size;
1784 unsigned int cluster_size, unsigned char algtype),
1786 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
1792 unsigned int cluster_size, unsigned char algtype),
1794 TP_ARGS(inode, cluster_idx, cluster_size, algtype)

12