Home
last modified time | relevance | path

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

12

/linux/fs/ntfs/
H A Dsuper.c673 vol->cluster_size = vol->sector_size << sectors_per_cluster_bits; in parse_ntfs_boot_sector()
674 vol->cluster_size_mask = vol->cluster_size - 1; in parse_ntfs_boot_sector()
675 vol->cluster_size_bits = ffs(vol->cluster_size) - 1; in parse_ntfs_boot_sector()
676 ntfs_debug("vol->cluster_size = %i (0x%x)", vol->cluster_size, in parse_ntfs_boot_sector()
677 vol->cluster_size); in parse_ntfs_boot_sector()
680 if (vol->cluster_size < vol->sector_size) { in parse_ntfs_boot_sector()
683 vol->cluster_size, vol->sector_size); in parse_ntfs_boot_sector()
690 vol->mft_record_size = vol->cluster_size << in parse_ntfs_boot_sector()
726 vol->index_record_size = vol->cluster_size << in parse_ntfs_boot_sector()
788 if (vol->cluster_size <= (4 << vol->mft_record_size_bits)) in parse_ntfs_boot_sector()
[all …]
H A Dlogfile.c688 empty_buf = kvzalloc(vol->cluster_size, GFP_NOFS); in ntfs_empty_logfile()
692 memset(empty_buf, 0xff, vol->cluster_size); in ntfs_empty_logfile()
734 vol->cluster_size); in ntfs_empty_logfile()
750 start, start + vol->cluster_size); in ntfs_empty_logfile()
754 start += vol->cluster_size; in ntfs_empty_logfile()
H A Dbitmap.c29 dq = vol->cluster_size; in ntfs_trim_fs()
38 (range->start + range->len + vol->cluster_size - 1)); in ntfs_trim_fs()
H A Dfile.c92 aligned_data_size = round_up(ni->data_size, vol->cluster_size); in ntfs_trim_prealloc()
384 stat->blksize = NTFS_SB(inode->i_sb)->cluster_size; in ntfs_getattr()
867 if (range.len < vol->cluster_size) in ntfs_ioctl_fitrim()
956 vol->cluster_size, PAGE_SIZE)); in ntfs_punch_hole()
1030 max_t(unsigned long, vol->cluster_size, PAGE_SIZE)); in ntfs_collapse_range()
1045 vol->cluster_size) >> vol->cluster_size_bits) + 1; in ntfs_collapse_range()
1072 max_t(unsigned long, vol->cluster_size, PAGE_SIZE)); in ntfs_insert_range()
H A Dcompress.c654 memcpy_from_page(cb_pos, lpage, page_ofs, vol->cluster_size); in ntfs_read_compressed_block()
657 cb_pos += vol->cluster_size; in ntfs_read_compressed_block()
1362 if (!sz || ((compsz + sz + vol->cluster_size + 2) > in ntfs_write_cb()
1393 rounded = ((compsz - 1) | (vol->cluster_size - 1)) + 1; in ntfs_write_cb()
1404 new_length = ntfs_bytes_to_cluster(vol, round_up(bio_size, vol->cluster_size)); in ntfs_write_cb()
H A Dvolume.h108 u32 cluster_size; member
H A Dinode.c1020 if (vol->cluster_size <= ni->itype.index.block_size) { in ntfs_read_locked_inode()
1021 ni->itype.index.vcn_size = vol->cluster_size; in ntfs_read_locked_inode()
1108 if (vol->cluster_size > 4096) { in ntfs_read_locked_inode()
1111 vol->cluster_size); in ntfs_read_locked_inode()
1332 if (vol->cluster_size > 4096) { in ntfs_read_locked_attr_inode()
1335 vol->cluster_size); in ntfs_read_locked_attr_inode()
1611 if (vol->cluster_size <= ni->itype.index.block_size) { in ntfs_read_locked_index_inode()
1612 ni->itype.index.vcn_size = vol->cluster_size; in ntfs_read_locked_index_inode()
2722 if (mft_ni->vol->cluster_size < mft_ni->vol->mft_record_size && in ntfs_get_block_mft_record()
H A Dmft.c621 offset += vol->cluster_size; in write_mft_record_nolock()
1384 mftbmp_ni->allocated_size += vol->cluster_size; in ntfs_mft_bitmap_extend_allocation_nolock()
1404 mftbmp_ni->allocated_size += vol->cluster_size; in ntfs_mft_bitmap_extend_allocation_nolock()
1655 min_nr = DIV_ROUND_UP_ULL((u64)vol->mft_record_size * 2, vol->cluster_size); in ntfs_mft_data_extend_allocation_nolock()
2969 if (vol->cluster_size < folio_size(folio)) { in ntfs_write_mft_block()
3004 if (vol->cluster_size == NTFS_BLOCK_SIZE && in ntfs_write_mft_block()
H A Dnamei.c431 if (vol->cluster_size <= ni->itype.index.block_size) { in __ntfs_create()
432 ni->itype.index.vcn_size = vol->cluster_size; in __ntfs_create()
567 if (ni->vol->cluster_size <= ni->vol->index_record_size) in __ntfs_create()
H A Dattrlist.c112 alloc_size + vol->cluster_size - 1); in ntfs_attrlist_repack()
H A Dattrib.c2003 new_size = (data_size + vol->cluster_size - 1) & in ntfs_attr_make_non_resident()
2004 ~(vol->cluster_size - 1); in ntfs_attr_make_non_resident()
3175 && (ni->vol->cluster_size <= MAX_COMPRESSION_CLUSTER_SIZE)) in ntfs_attr_open()
4287 ntfs_bytes_to_cluster(vol, newsize + vol->cluster_size - 1); in ntfs_non_resident_attr_shrink()
4482 ntfs_bytes_to_cluster(vol, prealloc_size + vol->cluster_size - 1); in ntfs_non_resident_attr_expand()
4485 ntfs_bytes_to_cluster(vol, newsize + vol->cluster_size - 1); in ntfs_non_resident_attr_expand()
4528 round_up(alloc_size, vol->cluster_size)); in ntfs_non_resident_attr_expand()
5805 round_up(start + byte_len, vol->cluster_size)); in ntfs_attr_fallocate()
5807 round_up(ni->initialized_size, vol->cluster_size)); in ntfs_attr_fallocate()
/linux/fs/ntfs3/
H A Dsuper.c504 sbi->cluster_size, sbi->used.bitmap.nbits, in ntfs3_volinfo()
747 buf->f_bsize = buf->f_frsize = sbi->cluster_size; in ntfs_statfs()
1034 sbi->cluster_size = boot_sector_size * sct_per_clst; in ntfs_init_from_boot()
1035 sbi->cluster_bits = cluster_bits = blksize_bits(sbi->cluster_size); in ntfs_init_from_boot()
1036 sbi->cluster_mask = sbi->cluster_size - 1; in ntfs_init_from_boot()
1131 if (sbi->cluster_size < boot_sector_size) { in ntfs_init_from_boot()
1133 sbi->cluster_size); in ntfs_init_from_boot()
1138 if (sbi->cluster_size < sector_size) { in ntfs_init_from_boot()
1143 sbi->cluster_size, sector_size); in ntfs_init_from_boot()
1199 if (!sb_set_blocksize(sb, min_t(u32, sbi->cluster_size, PAGE_SIZE))) { in ntfs_init_from_boot()
[all …]
H A Dfrecord.c2418 if (sbi->cluster_size > NTFS_LZNT_MAX_CLUSTER) { in ni_read_frame()
2442 frame_size = sbi->cluster_size << NTFS_LZNT_CUNIT; in ni_read_frame()
2542 u32 frame_size = sbi->cluster_size << NTFS_LZNT_CUNIT; in ni_write_frame()
2565 if (sbi->cluster_size > NTFS_LZNT_MAX_CLUSTER) { in ni_write_frame()
2625 if (compr_size + sbi->cluster_size > frame_size) { in ni_write_frame()
H A Dfile.c276 stat->blksize = ni->mi.sbi->cluster_size; /* 512, 1K, ..., 2M */ in ntfs_getattr()
475 sbi->cluster_size, PAGE_SIZE)); in ntfs_fallocate()
H A Dattrib.c483 align = sbi->cluster_size; in attr_set_size_ex()
2039 ((sbi->cluster_size << attr_b->nres.c_unit) - 1) : in attr_collapse_range()
2351 mask = (sbi->cluster_size << attr_b->nres.c_unit) - 1; in attr_punch_hole()
2561 mask = (sbi->cluster_size << attr_b->nres.c_unit) - 1; in attr_insert_range()
/linux/net/tipc/
H A Dmonitor.h74 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size);
H A Dmonitor.c726 int tipc_nl_monitor_set_threshold(struct net *net, u32 cluster_size) in tipc_nl_monitor_set_threshold() argument
730 if (cluster_size > TIPC_CLUSTER_SIZE) in tipc_nl_monitor_set_threshold()
733 tn->mon_threshold = cluster_size; in tipc_nl_monitor_set_threshold()
H A 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/fs/ocfs2/
H A Docfs1_fs_compat.h46 /*160*/ __u64 cluster_size; member
/linux/fs/f2fs/
H A Dfile.c714 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_truncate_data_blocks_range() local
727 !(cluster_index & (cluster_size - 1))) { in f2fs_truncate_data_blocks_range()
4157 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in release_compress_blocks() local
4175 for (i = 0; i < cluster_size; i++, dn->ofs_in_node++) { in release_compress_blocks()
4181 dn->ofs_in_node += cluster_size; in release_compress_blocks()
4196 cluster_size - compr_blocks); in release_compress_blocks()
4198 released_blocks += cluster_size - compr_blocks; in release_compress_blocks()
4200 count -= cluster_size; in release_compress_blocks()
4327 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in reserve_compress_blocks() local
4348 for (i = 0; i < cluster_size; i++) { in reserve_compress_blocks()
[all …]
H A Ddata.c2053 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_fiemap() local
2103 map.m_len = cluster_size - count_in_cluster; in f2fs_fiemap()
2160 unsigned int appended_blks = cluster_size - in f2fs_fiemap()
2175 if (count_in_cluster == cluster_size) { in f2fs_fiemap()
2346 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2386 for (i = 1; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2473 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages()
2678 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_mpage_readpages()
2700 max_nr_pages = round_up(index + nr_pages, cc.cluster_size) - in f2fs_mpage_readpages()
2701 round_down(index, cc.cluster_size); in f2fs_mpage_readpages()
[all …]
H A Dnode.c925 unsigned int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_get_dnode_of_data() local
932 if (fofs % cluster_size) { in f2fs_get_dnode_of_data()
933 fofs = round_down(fofs, cluster_size); in f2fs_get_dnode_of_data()
934 ofs_in_node = round_down(ofs_in_node, cluster_size); in f2fs_get_dnode_of_data()
947 fofs, blkaddr, cluster_size, c_len); in f2fs_get_dnode_of_data()
/linux/fs/fat/
H A Ddir.c1255 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits; in fat_add_new_entries()
1440 if (dir->i_size & (sbi->cluster_size - 1)) { in fat_add_entries()
1442 dir->i_size = (dir->i_size + sbi->cluster_size - 1) in fat_add_entries()
1443 & ~((loff_t)sbi->cluster_size - 1); in fat_add_entries()
H A Dfat.h71 unsigned int cluster_size; /* cluster size */ member
/linux/include/trace/events/
H A Df2fs.h2026 unsigned int cluster_size, unsigned char algtype),
2028 TP_ARGS(inode, cluster_idx, cluster_size, algtype),
2042 __entry->size = cluster_size;
2088 unsigned int cluster_size, unsigned char algtype),
2090 TP_ARGS(inode, cluster_idx, cluster_size, algtype)
2096 unsigned int cluster_size, unsigned char algtype),
2098 TP_ARGS(inode, cluster_idx, cluster_size, algtype)

12