/fs/hfsplus/ |
D | wrapper.c | 165 u32 blocksize; in hfsplus_read_wrapper() local 169 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper() 170 if (!blocksize) in hfsplus_read_wrapper() 230 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper() 235 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper() 237 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper() 238 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper() 239 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper() 244 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper() 245 blocksize >>= 1; in hfsplus_read_wrapper() [all …]
|
/fs/nilfs2/ |
D | the_nilfs.c | 227 int blocksize; in load_nilfs() local 248 blocksize = BLOCK_SIZE << le32_to_cpu(sbp[0]->s_log_block_size); in load_nilfs() 249 if (blocksize != nilfs->ns_blocksize) { in load_nilfs() 252 blocksize, nilfs->ns_blocksize); in load_nilfs() 558 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument 572 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block() 574 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block() 583 blocksize); in nilfs_load_super_block() 587 blocksize); in nilfs_load_super_block() 616 blocksize); in nilfs_load_super_block() [all …]
|
D | recovery.c | 97 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_compute_checksum() local 101 BUG_ON(offset >= blocksize); in nilfs_compute_checksum() 103 size = min_t(u64, check_bytes, blocksize - offset); in nilfs_compute_checksum() 110 bh = __bread(nilfs->ns_bdev, ++start, blocksize); in nilfs_compute_checksum() 114 size = min_t(u64, check_bytes, blocksize); in nilfs_compute_checksum() 500 unsigned int blocksize = nilfs->ns_blocksize; in nilfs_recover_dsync_blocks() local 514 err = block_write_begin(inode->i_mapping, pos, blocksize, in nilfs_recover_dsync_blocks() 519 if (pos + blocksize > isize) in nilfs_recover_dsync_blocks() 521 pos + blocksize); in nilfs_recover_dsync_blocks() 533 block_write_end(NULL, inode->i_mapping, pos, blocksize, in nilfs_recover_dsync_blocks() [all …]
|
/fs/ocfs2/ |
D | ocfs2_fs.h | 1231 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument 1235 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer() 1440 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument 1442 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars() 1445 static inline int ocfs2_max_inline_data_with_xattr(int blocksize, in ocfs2_max_inline_data_with_xattr() argument 1449 return blocksize - in ocfs2_max_inline_data_with_xattr() 1453 return blocksize - in ocfs2_max_inline_data_with_xattr() 1457 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument 1461 size = blocksize - in ocfs2_extent_recs_per_inode() 1467 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument [all …]
|
D | blockcheck.c | 146 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument 148 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block() 214 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument 217 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block() 351 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument 359 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute() 360 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute() 380 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument 397 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate() 407 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate() [all …]
|
D | blockcheck.h | 44 void ocfs2_block_check_compute(void *data, size_t blocksize, 46 int ocfs2_block_check_validate(void *data, size_t blocksize, 93 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize); 94 extern void ocfs2_hamming_fix_block(void *data, unsigned int blocksize,
|
/fs/affs/ |
D | super.c | 191 int *blocksize, char **prefix, char *volume, unsigned long *mount_opts) in parse_options() argument 202 *blocksize = -1; in parse_options() 224 *blocksize = n; in parse_options() 340 int size, blocksize; in affs_fill_super() local 374 &blocksize,&sbi->s_prefix, in affs_fill_super() 400 if (blocksize > 0) { in affs_fill_super() 401 i = j = blocksize; in affs_fill_super() 402 size = size / (blocksize / 512); in affs_fill_super() 405 for (blocksize = i; blocksize <= j; blocksize <<= 1, size >>= 1) { in affs_fill_super() 409 pr_debug("setting blocksize to %d\n", blocksize); in affs_fill_super() [all …]
|
/fs/ |
D | buffer.c | 536 sector_t bblock, unsigned blocksize) in write_boundary_block() argument 538 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block() 1526 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument 1530 head = alloc_page_buffers(page, blocksize, true); in create_empty_buffers() 1637 static inline int block_size_bits(unsigned int blocksize) in block_size_bits() argument 1639 return ilog2(blocksize); in block_size_bits() 1689 unsigned int blocksize, bbits; in __block_write_full_page() local 1707 blocksize = bh->b_size; in __block_write_full_page() 1708 bbits = block_size_bits(blocksize); in __block_write_full_page() 1731 WARN_ON(bh->b_size != blocksize); in __block_write_full_page() [all …]
|
/fs/ext4/ |
D | namei.c | 298 int count, unsigned int blocksize); 300 unsigned int blocksize); 315 unsigned int blocksize) in ext4_initialize_dirent_tail() argument 317 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail() 321 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail() 330 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dirent_tail() local 337 (blocksize - sizeof(struct ext4_dir_entry_tail))); in get_dirent_tail() 338 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize)) in get_dirent_tail() 340 ext4_rec_len_from_disk(d->rec_len, blocksize)); in get_dirent_tail() 351 (ext4_rec_len_from_disk(t->det_rec_len, blocksize) != in get_dirent_tail() [all …]
|
D | move_extent.c | 172 unsigned int blocksize, block_start, block_end; in mext_page_mkuptodate() local 180 blocksize = i_blocksize(inode); in mext_page_mkuptodate() 182 create_empty_buffers(page, blocksize, 0); in mext_page_mkuptodate() 188 block_end = block_start + blocksize; in mext_page_mkuptodate() 203 zero_user(page, block_start, blocksize); in mext_page_mkuptodate() 256 unsigned long blocksize = orig_inode->i_sb->s_blocksize; in move_extent_per_page() local 288 tmp_data_size = orig_inode->i_size & (blocksize - 1); in move_extent_per_page() 294 tmp_data_size = blocksize; in move_extent_per_page() 454 unsigned int blocksize = 1 << blkbits; in mext_check_arguments() local 456 orig_eof = (i_size_read(orig_inode) + blocksize - 1) >> blkbits; in mext_check_arguments() [all …]
|
D | super.c | 2210 int blocksize = in parse_options() local 2213 if (blocksize < PAGE_SIZE) { in parse_options() 3717 int blocksize, clustersize; in ext4_fill_super() local 3748 blocksize = sb_min_blocksize(sb, EXT4_MIN_BLOCK_SIZE); in ext4_fill_super() 3749 if (!blocksize) { in ext4_fill_super() 3758 if (blocksize != EXT4_MIN_BLOCK_SIZE) { in ext4_fill_super() 3760 offset = do_div(logical_sb_block, blocksize); in ext4_fill_super() 3878 blocksize = BLOCK_SIZE << le32_to_cpu(es->s_log_block_size); in ext4_fill_super() 3879 if (blocksize < EXT4_MIN_BLOCK_SIZE || in ext4_fill_super() 3880 blocksize > EXT4_MAX_BLOCK_SIZE) { in ext4_fill_super() [all …]
|
/fs/crypto/ |
D | crypto.c | 180 const unsigned int blocksize = 1 << blockbits; in fscrypt_encrypt_pagecache_blocks() local 190 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_encrypt_pagecache_blocks() 197 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_encrypt_pagecache_blocks() 200 blocksize, i, gfp_flags); in fscrypt_encrypt_pagecache_blocks() 260 const unsigned int blocksize = 1 << blockbits; in fscrypt_decrypt_pagecache_blocks() local 269 if (WARN_ON_ONCE(len <= 0 || !IS_ALIGNED(len | offs, blocksize))) in fscrypt_decrypt_pagecache_blocks() 272 for (i = offs; i < offs + len; i += blocksize, lblk_num++) { in fscrypt_decrypt_pagecache_blocks() 274 page, blocksize, i, GFP_NOFS); in fscrypt_decrypt_pagecache_blocks()
|
D | bio.c | 115 const unsigned int blocksize = 1 << blockbits; in fscrypt_zeroout_range() local 166 blocksize, offset, GFP_NOFS); in fscrypt_zeroout_range() 172 offset += blocksize; in fscrypt_zeroout_range()
|
/fs/ntfs/ |
D | aops.c | 180 unsigned int blocksize, vcn_ofs; in ntfs_read_block() local 191 blocksize = vol->sb->s_blocksize; in ntfs_read_block() 195 create_empty_buffers(page, blocksize, 0); in ntfs_read_block() 217 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block() 225 zblock = (init_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block() 324 zero_user(page, i * blocksize, blocksize); in ntfs_read_block() 546 unsigned int blocksize, vcn_ofs; in ntfs_write_block() local 560 blocksize = vol->sb->s_blocksize; in ntfs_write_block() 564 create_empty_buffers(page, blocksize, in ntfs_write_block() 593 dblock = (i_size + blocksize - 1) >> blocksize_bits; in ntfs_write_block() [all …]
|
D | file.c | 588 unsigned blocksize, u; in ntfs_prepare_pages_for_non_resident_write() local 609 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write() 620 create_empty_buffers(page, blocksize, 0); in ntfs_prepare_pages_for_non_resident_write() 652 bh_end = bh_pos + blocksize; in ntfs_prepare_pages_for_non_resident_write() 690 blocksize); in ntfs_prepare_pages_for_non_resident_write() 765 blocksize); in ntfs_prepare_pages_for_non_resident_write() 784 blocksize); in ntfs_prepare_pages_for_non_resident_write() 823 zero_user(page, bh_offset(bh), blocksize); in ntfs_prepare_pages_for_non_resident_write() 948 blocksize); in ntfs_prepare_pages_for_non_resident_write() 1174 } while (bh_pos += blocksize, (bh = bh->b_this_page) != head); in ntfs_prepare_pages_for_non_resident_write() [all …]
|
/fs/btrfs/ |
D | block-rsv.h | 84 u32 blocksize); 95 u32 blocksize) in btrfs_unuse_block_rsv() argument 97 btrfs_block_rsv_add_bytes(block_rsv, blocksize, false); in btrfs_unuse_block_rsv()
|
D | block-rsv.c | 385 u32 blocksize) in btrfs_use_block_rsv() argument 398 ret = btrfs_block_rsv_use_bytes(block_rsv, blocksize); in btrfs_use_block_rsv() 425 ret = btrfs_reserve_metadata_bytes(root, block_rsv, blocksize, in btrfs_use_block_rsv() 436 ret = btrfs_block_rsv_use_bytes(global_rsv, blocksize); in btrfs_use_block_rsv()
|
/fs/ext2/ |
D | super.c | 839 int blocksize = BLOCK_SIZE; in ext2_fill_super() local 870 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super() 871 if (!blocksize) { in ext2_fill_super() 880 if (blocksize != BLOCK_SIZE) { in ext2_fill_super() 881 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super() 882 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super() 976 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super() 979 if (!bdev_dax_supported(sb->s_bdev, blocksize)) { in ext2_fill_super() 987 if (sb->s_blocksize != blocksize) { in ext2_fill_super() 990 if (!sb_set_blocksize(sb, blocksize)) { in ext2_fill_super() [all …]
|
/fs/reiserfs/ |
D | file.c | 181 unsigned blocksize; in reiserfs_commit_page() local 192 blocksize = i_blocksize(inode); in reiserfs_commit_page() 207 block_end = block_start + blocksize; in reiserfs_commit_page()
|
D | stree.c | 408 static int is_leaf(char *buf, int blocksize, struct buffer_head *bh) in is_leaf() argument 425 if (nr < 1 || nr > ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) { in is_leaf() 432 used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih)); in is_leaf() 435 if (used_space != blocksize - blkh_free_space(blkh)) { in is_leaf() 447 prev_location = blocksize; in is_leaf() 455 if (ih_location(ih) >= blocksize in is_leaf() 463 || ih_item_len(ih) > MAX_ITEM_LEN(blocksize)) { in is_leaf() 492 static int is_internal(char *buf, int blocksize, struct buffer_head *bh) in is_internal() argument 509 if (nr > (blocksize - BLKH_SIZE - DC_SIZE) / (KEY_SIZE + DC_SIZE)) { in is_internal() 516 if (used_space != blocksize - blkh_free_space(blkh)) { in is_internal()
|
D | ioctl.c | 175 unsigned long blocksize = inode->i_sb->s_blocksize; in reiserfs_unpack() local 195 write_from = inode->i_size & (blocksize - 1); in reiserfs_unpack()
|
/fs/sysv/ |
D | itree.c | 130 int blocksize = inode->i_sb->s_blocksize; in alloc_branch() local 153 memset(bh->b_data, 0, blocksize); in alloc_branch() 375 unsigned blocksize; in sysv_truncate() local 381 blocksize = inode->i_sb->s_blocksize; in sysv_truncate() 382 iblock = (inode->i_size + blocksize-1) in sysv_truncate()
|
/fs/minix/ |
D | bitmap.c | 27 static __u32 count_free(struct buffer_head *map[], unsigned blocksize, __u32 numbits) in count_free() argument 30 unsigned blocks = DIV_ROUND_UP(numbits, blocksize * 8); in count_free() 33 unsigned words = blocksize / 2; in count_free()
|
D | minix.h | 90 static inline unsigned minix_blocks_needed(unsigned bits, unsigned blocksize) in minix_blocks_needed() argument 92 return DIV_ROUND_UP(bits, blocksize * 8); in minix_blocks_needed()
|
/fs/iomap/ |
D | fiemap.c | 135 unsigned blocksize = i_blocksize(inode); in iomap_bmap() local 141 iomap_apply(inode, pos, blocksize, 0, ops, &bno, iomap_bmap_actor); in iomap_bmap()
|