/fs/f2fs/ |
D | compress.c | 60 return index & (cc->cluster_size - 1); in offset_in_cluster() 113 f2fs_drop_rpages(cc, cc->cluster_size, false); in f2fs_put_rpages() 126 for (i = 0; i < cc->cluster_size; i++) { in f2fs_put_rpages_wbc() 145 cc->rpages = page_array_alloc(cc->inode, cc->cluster_size); in f2fs_init_compress_ctx() 151 page_array_free(cc->inode, cc->rpages, cc->cluster_size); in f2fs_destroy_compress_ctx() 625 cc->cluster_size, fi->i_compress_algorithm); in f2fs_compress_pages() 650 cc->rbuf = f2fs_vmap(cc->rpages, cc->cluster_size); in f2fs_compress_pages() 666 max_len = PAGE_SIZE * (cc->cluster_size - 1) - COMPRESS_HEADER_SIZE; in f2fs_compress_pages() 698 vm_unmap_ram(cc->rbuf, cc->cluster_size); in f2fs_compress_pages() 723 vm_unmap_ram(cc->rbuf, cc->cluster_size); in f2fs_compress_pages() [all …]
|
D | file.c | 554 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in f2fs_truncate_data_blocks_range() local 568 !(cluster_index & (cluster_size - 1))) { in f2fs_truncate_data_blocks_range() 3487 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in release_compress_blocks() local 3505 for (i = 0; i < cluster_size; i++, dn->ofs_in_node++) { in release_compress_blocks() 3511 dn->ofs_in_node += cluster_size; in release_compress_blocks() 3527 cluster_size - compr_blocks); in release_compress_blocks() 3529 released_blocks += cluster_size - compr_blocks; in release_compress_blocks() 3531 count -= cluster_size; in release_compress_blocks() 3649 int cluster_size = F2FS_I(dn->inode)->i_cluster_size; in reserve_compress_blocks() local 3669 for (i = 0; i < cluster_size; i++, dn->ofs_in_node++) { in reserve_compress_blocks() [all …]
|
D | data.c | 1897 unsigned int cluster_size = F2FS_I(inode)->i_cluster_size; in f2fs_fiemap() local 1948 map.m_len = cluster_size - count_in_cluster; in f2fs_fiemap() 1995 unsigned int appended_blks = cluster_size - in f2fs_fiemap() 2010 if (count_in_cluster == cluster_size) { in f2fs_fiemap() 2188 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2225 for (i = 1; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2319 for (i = 0; i < cc->cluster_size; i++) { in f2fs_read_multi_pages() 2345 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_mpage_readpages() 2947 .cluster_size = F2FS_I(inode)->i_cluster_size, in f2fs_write_cache_pages()
|
D | f2fs.h | 1489 unsigned int cluster_size; /* page count in cluster */ member 1517 unsigned int cluster_size; /* page count in cluster */ member
|
/fs/ntfs/ |
D | super.c | 777 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 …]
|
D | file.c | 634 cend = (end + vol->cluster_size - 1) >> vol->cluster_size_bits; in ntfs_prepare_pages_for_non_resident_write() 930 if (unlikely(vol->cluster_size < PAGE_SIZE)) { in ntfs_prepare_pages_for_non_resident_write() 931 bh_cend = (bh_end + vol->cluster_size - 1) >> in ntfs_prepare_pages_for_non_resident_write() 1143 ni->itype.compressed.size += vol->cluster_size; in ntfs_prepare_pages_for_non_resident_write() 1236 ni->itype.compressed.size += vol->cluster_size; in ntfs_prepare_pages_for_non_resident_write() 1775 if (vol->cluster_size > PAGE_SIZE && NInoNonResident(ni)) in ntfs_perform_write() 1776 nr_pages = vol->cluster_size >> PAGE_SHIFT; in ntfs_perform_write() 1821 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() 2425 new_alloc_size = (new_size + vol->cluster_size - 1) & in ntfs_truncate()
|
D | volume.h | 46 u32 cluster_size; /* in bytes */ member
|
D | mft.c | 1480 mftbmp_ni->allocated_size += vol->cluster_size; in ntfs_mft_bitmap_extend_allocation_nolock() 1500 mftbmp_ni->allocated_size += vol->cluster_size; in ntfs_mft_bitmap_extend_allocation_nolock() 2662 if (vol->cluster_size <= ni->itype.index.block_size) { in ntfs_mft_record_alloc() 2663 ni->itype.index.vcn_size = vol->cluster_size; in ntfs_mft_record_alloc()
|
D | attrib.c | 1583 new_size = (data_size + vol->cluster_size - 1) & in ntfs_attr_make_non_resident() 1584 ~(vol->cluster_size - 1); in ntfs_attr_make_non_resident() 1953 new_alloc_size = (new_alloc_size + vol->cluster_size - 1) & in ntfs_attr_extend_allocation()
|
D | compress.c | 636 max_block = block + (vol->cluster_size >> block_size_bits); in ntfs_read_compressed_block()
|
D | runlist.c | 904 vol->cluster_size - 1) >> in ntfs_mapping_pairs_decompress()
|
/fs/fat/ |
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()
|
D | inode.c | 564 inode->i_blocks = ((inode->i_size + (sbi->cluster_size - 1)) in fat_fill_inode() 565 & ~((loff_t)sbi->cluster_size - 1)) >> 9; in fat_fill_inode() 629 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() 1698 sbi->cluster_size = sb->s_blocksize * sbi->sec_per_clus; in fat_fill_super() 1699 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
|
D | fatent.c | 782 if (ent_start >= sbi->max_cluster || range->len < sbi->cluster_size) in fat_trim_fs()
|
/fs/ocfs2/ |
D | ocfs1_fs_compat.h | 48 /*160*/ __u64 cluster_size; member
|
/fs/exfat/ |
D | file.c | 253 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()
|
D | super.c | 88 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() 475 sbi->cluster_size = 1 << sbi->cluster_size_bits; in exfat_read_boot_sector()
|
D | exfat_fs.h | 85 #define EXFAT_CLU_OFFSET(off, sbi) ((off) & ((sbi)->cluster_size - 1)) 220 unsigned int cluster_size; /* cluster size in bytes */ member
|
D | namei.c | 409 ei->i_size_ondisk += sbi->cluster_size; in exfat_find_empty_entry() 410 ei->i_size_aligned += sbi->cluster_size; in exfat_find_empty_entry() 412 inode->i_blocks += sbi->cluster_size >> 9; in exfat_find_empty_entry() 516 clu_size = sbi->cluster_size; in exfat_add_entry()
|
D | inode.c | 603 inode->i_blocks = round_up(i_size_read(inode), sbi->cluster_size) >> 9; in exfat_fill_inode()
|
/fs/ext4/ |
D | xattr.c | 868 size_t cluster_size = 1 << (EXT4_SB(sb)->s_cluster_bits + in round_up_cluster() local 870 size_t mask = ~(cluster_size - 1); in round_up_cluster() 872 return (length + cluster_size - 1) & mask; in round_up_cluster()
|