/fs/hfsplus/ |
D | wrapper.c | 94 u32 blocksize; in hfsplus_read_wrapper() local 96 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper() 97 if (!blocksize) in hfsplus_read_wrapper() 133 blocksize = be32_to_cpu(vhdr->blocksize); in hfsplus_read_wrapper() 139 if (blocksize < HFSPLUS_SECTOR_SIZE || in hfsplus_read_wrapper() 140 ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper() 142 HFSPLUS_SB(sb).alloc_blksz = blocksize; in hfsplus_read_wrapper() 144 while ((blocksize >>= 1) != 0) in hfsplus_read_wrapper() 146 blocksize = min(HFSPLUS_SB(sb).alloc_blksz, (u32)PAGE_SIZE); in hfsplus_read_wrapper() 149 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper() [all …]
|
/fs/partitions/ |
D | ibm.c | 46 int blocksize, offset, size,res; in ibm_partition() local 60 blocksize = bdev_hardsect_size(bdev); in ibm_partition() 61 if (blocksize <= 0) in ibm_partition() 84 data = read_dev_sector(bdev, info->label_block*(blocksize/512), §); in ibm_partition() 116 blocksize = label->cms.block_size; in ibm_partition() 119 * (blocksize >> 9); in ibm_partition() 136 put_partition(state, 1, offset*(blocksize >> 9), in ibm_partition() 137 size-offset*(blocksize >> 9)); in ibm_partition() 157 data = read_dev_sector(bdev, blk * (blocksize/512), in ibm_partition() 172 (blocksize/512), in ibm_partition() [all …]
|
/fs/ocfs2/ |
D | blockcheck.c | 151 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument 153 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block() 219 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument 222 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block() 239 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument 247 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute() 248 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute() 268 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument 281 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate() 290 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate() [all …]
|
D | ocfs2_fs.h | 1057 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument 1061 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer() 1190 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument 1192 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars() 1195 static inline int ocfs2_max_inline_data(int blocksize) in ocfs2_max_inline_data() argument 1197 return blocksize - offsetof(struct ocfs2_dinode, id2.i_data.id_data); in ocfs2_max_inline_data() 1200 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument 1204 size = blocksize - in ocfs2_extent_recs_per_inode() 1210 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument 1214 size = blocksize - in ocfs2_chain_recs_per_inode() [all …]
|
D | blockcheck.h | 37 void ocfs2_block_check_compute(void *data, size_t blocksize, 39 int ocfs2_block_check_validate(void *data, size_t blocksize, 79 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize); 80 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
|
D | xattr.c | 330 int blocksize = src->bu_inode->i_sb->s_blocksize; in ocfs2_xattr_bucket_copy_data() local 337 blocksize); in ocfs2_xattr_bucket_copy_data() 956 size_t cplen, blocksize; in ocfs2_xattr_get_value_outside() local 963 blocksize = inode->i_sb->s_blocksize; in ocfs2_xattr_get_value_outside() 983 cplen = len >= blocksize ? blocksize : len; in ocfs2_xattr_get_value_outside() 1194 u16 blocksize = inode->i_sb->s_blocksize; in __ocfs2_xattr_set_value_outside() local 1229 cp_len = value_len > blocksize ? blocksize : value_len; in __ocfs2_xattr_set_value_outside() 1233 if (cp_len < blocksize) in __ocfs2_xattr_set_value_outside() 1235 blocksize - cp_len); in __ocfs2_xattr_set_value_outside() 3317 int i, blocksize = inode->i_sb->s_blocksize; in ocfs2_cp_xattr_block_to_bucket() local [all …]
|
/fs/affs/ |
D | super.c | 159 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument 170 *blocksize = -1; in parse_options() 192 *blocksize = n; in parse_options() 268 int size, blocksize; in affs_fill_super() local 296 &blocksize,&sbi->s_prefix, in affs_fill_super() 322 if (blocksize > 0) { in affs_fill_super() 323 i = j = blocksize; in affs_fill_super() 324 size = size / (blocksize / 512); in affs_fill_super() 326 for (blocksize = i, key = 0; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super() 330 pr_debug("AFFS: setting blocksize to %d\n", blocksize); in affs_fill_super() [all …]
|
D | bitmap.c | 17 affs_count_free_bits(u32 blocksize, const void *data) in affs_count_free_bits() argument 25 for (blocksize /= 4; blocksize > 0; blocksize--) { in affs_count_free_bits()
|
/fs/ |
D | buffer.c | 725 sector_t bblock, unsigned blocksize) in write_boundary_block() argument 727 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block() 1622 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument 1626 head = alloc_page_buffers(page, blocksize, 1); in create_empty_buffers() 1715 const unsigned blocksize = 1 << inode->i_blkbits; in __block_write_full_page() local 1723 create_empty_buffers(page, blocksize, in __block_write_full_page() 1759 WARN_ON(bh->b_size != blocksize); in __block_write_full_page() 1919 unsigned blocksize, bbits; in __block_prepare_write() local 1927 blocksize = 1 << inode->i_blkbits; in __block_prepare_write() 1929 create_empty_buffers(page, blocksize, 0); in __block_prepare_write() [all …]
|
/fs/btrfs/ |
D | disk-io.h | 40 u32 blocksize, u64 parent_transid); 41 int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize, 44 u64 bytenr, u32 blocksize); 56 u64 bytenr, u32 blocksize);
|
D | ctree.c | 459 static int close_blocks(u64 blocknr, u64 other, u32 blocksize) in close_blocks() argument 461 if (blocknr < other && other - (blocknr + blocksize) < 32768) in close_blocks() 463 if (blocknr > other && blocknr - (other + blocksize) < 32768) in close_blocks() 534 u32 blocksize; in btrfs_realloc_node() local 548 blocksize = btrfs_level_size(root, parent_level - 1); in btrfs_realloc_node() 579 close = close_blocks(blocknr, other, blocksize); in btrfs_realloc_node() 583 close = close_blocks(blocknr, other, blocksize); in btrfs_realloc_node() 595 cur = btrfs_find_tree_block(root, blocknr, blocksize); in btrfs_realloc_node() 607 blocksize, gen); in btrfs_realloc_node() 619 min(16 * blocksize, in btrfs_realloc_node() [all …]
|
D | disk-io.c | 780 int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize, in readahead_tree_block() argument 787 buf = btrfs_find_create_tree_block(root, bytenr, blocksize); in readahead_tree_block() 797 u64 bytenr, u32 blocksize) in btrfs_find_tree_block() argument 802 bytenr, blocksize, GFP_NOFS); in btrfs_find_tree_block() 807 u64 bytenr, u32 blocksize) in btrfs_find_create_tree_block() argument 813 bytenr, blocksize, NULL, GFP_NOFS); in btrfs_find_create_tree_block() 831 u32 blocksize, u64 parent_transid) in read_tree_block() argument 840 buf = btrfs_find_create_tree_block(root, bytenr, blocksize); in read_tree_block() 939 u32 blocksize; in find_and_setup_root() local 950 blocksize = btrfs_level_size(root, btrfs_root_level(&root->root_item)); in find_and_setup_root() [all …]
|
/fs/ext3/ |
D | super.c | 1559 int blocksize; in ext3_fill_super() local 1586 blocksize = sb_min_blocksize(sb, EXT3_MIN_BLOCK_SIZE); in ext3_fill_super() 1587 if (!blocksize) { in ext3_fill_super() 1596 if (blocksize != EXT3_MIN_BLOCK_SIZE) { in ext3_fill_super() 1597 logic_sb_block = (sb_block * EXT3_MIN_BLOCK_SIZE) / blocksize; in ext3_fill_super() 1598 offset = (sb_block * EXT3_MIN_BLOCK_SIZE) % blocksize; in ext3_fill_super() 1685 blocksize = BLOCK_SIZE << le32_to_cpu(es->s_log_block_size); in ext3_fill_super() 1687 if (blocksize < EXT3_MIN_BLOCK_SIZE || in ext3_fill_super() 1688 blocksize > EXT3_MAX_BLOCK_SIZE) { in ext3_fill_super() 1691 blocksize, sb->s_id); in ext3_fill_super() [all …]
|
D | namei.c | 304 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() local 319 dx_show_leaf(hinfo, (struct ext3_dir_entry_2 *) bh->b_data, blocksize, 0); in dx_show_entries() 327 names, space/bcount,(space/bcount)*100/blocksize); in dx_show_entries() 1153 unsigned blocksize = dir->i_sb->s_blocksize; in do_split() local 1184 map = (struct dx_map_entry *) (data2 + blocksize); in do_split() 1186 blocksize, hinfo, map); in do_split() 1194 if (size + map[i].size/2 > blocksize/2) in do_split() 1208 de = dx_pack_dirents(data1,blocksize); in do_split() 1209 de->rec_len = ext3_rec_len_to_disk(data1 + blocksize - (char *) de); in do_split() 1210 de2->rec_len = ext3_rec_len_to_disk(data2 + blocksize - (char *) de2); in do_split() [all …]
|
/fs/ntfs/ |
D | aops.c | 197 unsigned int blocksize, vcn_ofs; in ntfs_read_block() local 208 blocksize = vol->sb->s_blocksize; in ntfs_read_block() 212 create_empty_buffers(page, blocksize, 0); in ntfs_read_block() 234 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block() 242 zblock = (init_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block() 341 zero_user(page, i * blocksize, blocksize); in ntfs_read_block() 563 unsigned int blocksize, vcn_ofs; in ntfs_write_block() local 577 blocksize = vol->sb->s_blocksize; in ntfs_write_block() 581 create_empty_buffers(page, blocksize, in ntfs_write_block() 610 dblock = (i_size + blocksize - 1) >> blocksize_bits; in ntfs_write_block() [all …]
|
D | file.c | 509 unsigned blocksize, u; in ntfs_prepare_pages_for_non_resident_write() local 530 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write() 541 create_empty_buffers(page, blocksize, 0); in ntfs_prepare_pages_for_non_resident_write() 573 bh_end = bh_pos + blocksize; in ntfs_prepare_pages_for_non_resident_write() 611 blocksize); in ntfs_prepare_pages_for_non_resident_write() 687 blocksize); in ntfs_prepare_pages_for_non_resident_write() 706 blocksize); in ntfs_prepare_pages_for_non_resident_write() 745 zero_user(page, bh_offset(bh), blocksize); in ntfs_prepare_pages_for_non_resident_write() 870 blocksize); in ntfs_prepare_pages_for_non_resident_write() 1096 } while (bh_pos += blocksize, (bh = bh->b_this_page) != head); in ntfs_prepare_pages_for_non_resident_write() [all …]
|
/fs/ext2/ |
D | super.c | 751 int blocksize = BLOCK_SIZE; in ext2_fill_super() local 777 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super() 778 if (!blocksize) { in ext2_fill_super() 787 if (blocksize != BLOCK_SIZE) { in ext2_fill_super() 788 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super() 789 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super() 874 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super() 876 if (ext2_use_xip(sb) && blocksize != PAGE_SIZE) { in ext2_fill_super() 883 if (sb->s_blocksize != blocksize) { in ext2_fill_super() 886 if (!sb_set_blocksize(sb, blocksize)) { in ext2_fill_super() [all …]
|
/fs/ext4/ |
D | namei.c | 306 unsigned blocksize = dir->i_sb->s_blocksize; in dx_show_entries() local 322 dx_show_leaf(hinfo, (struct ext4_dir_entry_2 *) bh->b_data, blocksize, 0); in dx_show_entries() 331 (space/bcount)*100/blocksize); in dx_show_entries() 1163 unsigned blocksize = dir->i_sb->s_blocksize; in do_split() local 1194 map = (struct dx_map_entry *) (data2 + blocksize); in do_split() 1196 blocksize, hinfo, map); in do_split() 1204 if (size + map[i].size/2 > blocksize/2) in do_split() 1219 de = dx_pack_dirents(data1, blocksize); in do_split() 1220 de->rec_len = ext4_rec_len_to_disk(data1 + blocksize - (char *) de); in do_split() 1221 de2->rec_len = ext4_rec_len_to_disk(data2 + blocksize - (char *) de2); in do_split() [all …]
|
D | super.c | 2010 int blocksize; in ext4_fill_super() local 2035 blocksize = sb_min_blocksize(sb, EXT4_MIN_BLOCK_SIZE); in ext4_fill_super() 2036 if (!blocksize) { in ext4_fill_super() 2045 if (blocksize != EXT4_MIN_BLOCK_SIZE) { in ext4_fill_super() 2047 offset = do_div(logical_sb_block, blocksize); in ext4_fill_super() 2163 blocksize = BLOCK_SIZE << le32_to_cpu(es->s_log_block_size); in ext4_fill_super() 2165 if (blocksize < EXT4_MIN_BLOCK_SIZE || in ext4_fill_super() 2166 blocksize > EXT4_MAX_BLOCK_SIZE) { in ext4_fill_super() 2169 blocksize, sb->s_id); in ext4_fill_super() 2173 if (sb->s_blocksize != blocksize) { in ext4_fill_super() [all …]
|
/fs/reiserfs/ |
D | file.c | 162 unsigned blocksize; in reiserfs_commit_page() local 173 blocksize = 1 << inode->i_blkbits; in reiserfs_commit_page() 188 block_end = block_start + blocksize; in reiserfs_commit_page()
|
D | ioctl.c | 167 unsigned long blocksize = inode->i_sb->s_blocksize; in reiserfs_unpack() local 184 write_from = inode->i_size & (blocksize - 1); in reiserfs_unpack()
|
/fs/sysv/ |
D | itree.c | 129 int blocksize = inode->i_sb->s_blocksize; in alloc_branch() local 148 memset(bh->b_data, 0, blocksize); in alloc_branch() 372 unsigned blocksize; in sysv_truncate() local 378 blocksize = inode->i_sb->s_blocksize; in sysv_truncate() 379 iblock = (inode->i_size + blocksize-1) in sysv_truncate()
|
/fs/udf/ |
D | inode.c | 705 unsigned long blocksize = inode->i_sb->s_blocksize; in udf_split_extents() local 713 blocksize - 1) >> blocksize_bits; in udf_split_extents() 750 blocksize; in udf_split_extents() 866 unsigned long blocksize = inode->i_sb->s_blocksize; in udf_merge_extents() local 879 blocksize - 1) >> blocksize_bits)))) { in udf_merge_extents() 883 blocksize - 1) & ~UDF_EXTENT_LENGTH_MASK) { in udf_merge_extents() 888 ~(blocksize - 1); in udf_merge_extents() 892 blocksize; in udf_merge_extents() 902 blocksize - 1) & ~(blocksize - 1)); in udf_merge_extents() 917 blocksize - 1) >> blocksize_bits); in udf_merge_extents() [all …]
|
/fs/fat/ |
D | cache.c | 300 const unsigned long blocksize = sb->s_blocksize; in fat_bmap() local 315 last_block = (i_size_read(inode) + (blocksize - 1)) >> blocksize_bits; in fat_bmap() 324 last_block = (MSDOS_I(inode)->mmu_private + (blocksize - 1)) in fat_bmap()
|
/fs/xfs/ |
D | xfs_attr_leaf.c | 1331 xfs_da_log_buf(args->trans, blk1->bp, 0, state->blocksize-1); in xfs_attr_leaf_rebalance() 1332 xfs_da_log_buf(args->trans, blk2->bp, 0, state->blocksize-1); in xfs_attr_leaf_rebalance() 1363 xfs_da_log_buf(args->trans, blk1->bp, 0, state->blocksize-1); in xfs_attr_leaf_rebalance() 1364 xfs_da_log_buf(args->trans, blk2->bp, 0, state->blocksize-1); in xfs_attr_leaf_rebalance() 1451 state->blocksize, NULL); in xfs_attr_leaf_figure_balance() 1453 lastdelta = state->blocksize; in xfs_attr_leaf_figure_balance() 1466 state->blocksize, NULL); in xfs_attr_leaf_figure_balance() 1505 state->blocksize, NULL); in xfs_attr_leaf_figure_balance() 1551 if (bytes > (state->blocksize >> 1)) { in xfs_attr_leaf_toosmall() 1605 bytes = state->blocksize - (state->blocksize>>2); in xfs_attr_leaf_toosmall() [all …]
|