/fs/hfsplus/ |
D | wrapper.c | 168 u32 blocksize; in hfsplus_read_wrapper() local 172 blocksize = sb_min_blocksize(sb, HFSPLUS_SECTOR_SIZE); in hfsplus_read_wrapper() 173 if (!blocksize) in hfsplus_read_wrapper() 233 blocksize = be32_to_cpu(sbi->s_vhdr->blocksize); in hfsplus_read_wrapper() 238 if (blocksize < HFSPLUS_SECTOR_SIZE || ((blocksize - 1) & blocksize)) in hfsplus_read_wrapper() 240 sbi->alloc_blksz = blocksize; in hfsplus_read_wrapper() 241 sbi->alloc_blksz_shift = ilog2(blocksize); in hfsplus_read_wrapper() 242 blocksize = min_t(u32, sbi->alloc_blksz, PAGE_SIZE); in hfsplus_read_wrapper() 247 while (part_start & ((blocksize >> HFSPLUS_SECTOR_SHIFT) - 1)) in hfsplus_read_wrapper() 248 blocksize >>= 1; in hfsplus_read_wrapper() [all …]
|
/fs/nilfs2/ |
D | the_nilfs.c | 209 struct nilfs_super_block *sbp, int *blocksize) in nilfs_get_blocksize() argument 219 *blocksize = BLOCK_SIZE << shift_bits; in nilfs_get_blocksize() 255 int blocksize; in load_nilfs() local 276 err = nilfs_get_blocksize(sb, sbp[0], &blocksize); in load_nilfs() 280 if (blocksize != nilfs->ns_blocksize) { in load_nilfs() 283 blocksize, nilfs->ns_blocksize); in load_nilfs() 590 struct super_block *sb, int blocksize, in nilfs_load_super_block() argument 604 sbp[0] = nilfs_read_super_block(sb, NILFS_SB_OFFSET_BYTES, blocksize, in nilfs_load_super_block() 606 sbp[1] = nilfs_read_super_block(sb, sb2off, blocksize, &sbh[1]); in nilfs_load_super_block() 615 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 | 1229 static inline struct ocfs2_disk_dqtrailer *ocfs2_block_dqtrailer(int blocksize, in ocfs2_block_dqtrailer() argument 1233 ptr += blocksize - OCFS2_QBLK_RESERVED_SPACE; in ocfs2_block_dqtrailer() 1438 static inline int ocfs2_fast_symlink_chars(int blocksize) in ocfs2_fast_symlink_chars() argument 1440 return blocksize - offsetof(struct ocfs2_dinode, id2.i_symlink); in ocfs2_fast_symlink_chars() 1443 static inline int ocfs2_max_inline_data_with_xattr(int blocksize, in ocfs2_max_inline_data_with_xattr() argument 1447 return blocksize - in ocfs2_max_inline_data_with_xattr() 1451 return blocksize - in ocfs2_max_inline_data_with_xattr() 1455 static inline int ocfs2_extent_recs_per_inode(int blocksize) in ocfs2_extent_recs_per_inode() argument 1459 size = blocksize - in ocfs2_extent_recs_per_inode() 1465 static inline int ocfs2_chain_recs_per_inode(int blocksize) in ocfs2_chain_recs_per_inode() argument [all …]
|
D | blockcheck.c | 144 u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize) in ocfs2_hamming_encode_block() argument 146 return ocfs2_hamming_encode(0, data, blocksize * 8, 0); in ocfs2_hamming_encode_block() 212 void ocfs2_hamming_fix_block(void *data, unsigned int blocksize, in ocfs2_hamming_fix_block() argument 215 ocfs2_hamming_fix(data, blocksize * 8, 0, fix); in ocfs2_hamming_fix_block() 349 void ocfs2_block_check_compute(void *data, size_t blocksize, in ocfs2_block_check_compute() argument 357 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_compute() 358 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_compute() 378 int ocfs2_block_check_validate(void *data, size_t blocksize, in ocfs2_block_check_validate() argument 395 crc = crc32_le(~0, data, blocksize); in ocfs2_block_check_validate() 405 ecc = ocfs2_hamming_encode_block(data, blocksize); in ocfs2_block_check_validate() [all …]
|
D | blockcheck.h | 42 void ocfs2_block_check_compute(void *data, size_t blocksize, 44 int ocfs2_block_check_validate(void *data, size_t blocksize, 91 extern u32 ocfs2_hamming_encode_block(void *data, unsigned int blocksize); 92 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 | 560 sector_t bblock, unsigned blocksize) in write_boundary_block() argument 562 struct buffer_head *bh = __find_get_block(bdev, bblock + 1, blocksize); in write_boundary_block() 1558 unsigned long blocksize, unsigned long b_state) in create_empty_buffers() argument 1562 head = alloc_page_buffers(page, blocksize, true); in create_empty_buffers() 1669 static inline int block_size_bits(unsigned int blocksize) in block_size_bits() argument 1671 return ilog2(blocksize); in block_size_bits() 1721 unsigned int blocksize, bbits; in __block_write_full_page() local 1739 blocksize = bh->b_size; in __block_write_full_page() 1740 bbits = block_size_bits(blocksize); in __block_write_full_page() 1763 WARN_ON(bh->b_size != blocksize); in __block_write_full_page() [all …]
|
/fs/ext4/ |
D | namei.c | 314 int count, unsigned int blocksize); 316 unsigned int blocksize); 331 unsigned int blocksize) in ext4_initialize_dirent_tail() argument 333 struct ext4_dir_entry_tail *t = EXT4_DIRENT_TAIL(bh->b_data, blocksize); in ext4_initialize_dirent_tail() 337 sizeof(struct ext4_dir_entry_tail), blocksize); in ext4_initialize_dirent_tail() 346 int blocksize = EXT4_BLOCK_SIZE(inode->i_sb); in get_dirent_tail() local 353 (blocksize - sizeof(struct ext4_dir_entry_tail))); in get_dirent_tail() 354 while (d < top && ext4_rec_len_from_disk(d->rec_len, blocksize)) in get_dirent_tail() 356 ext4_rec_len_from_disk(d->rec_len, blocksize)); in get_dirent_tail() 367 (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 | 2492 int blocksize = in parse_options() local 2494 if (blocksize < PAGE_SIZE) in parse_options() 3899 int blocksize, clustersize; in ext4_fill_super() local 3934 blocksize = sb_min_blocksize(sb, EXT4_MIN_BLOCK_SIZE); in ext4_fill_super() 3935 if (!blocksize) { in ext4_fill_super() 3944 if (blocksize != EXT4_MIN_BLOCK_SIZE) { in ext4_fill_super() 3946 offset = do_div(logical_sb_block, blocksize); in ext4_fill_super() 4085 blocksize = EXT4_MIN_BLOCK_SIZE << le32_to_cpu(es->s_log_block_size); in ext4_fill_super() 4087 if (blocksize == PAGE_SIZE) in ext4_fill_super() 4103 (sbi->s_inode_size > blocksize)) { 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 | 114 const unsigned int blocksize = 1 << blockbits; in fscrypt_zeroout_range() local 165 blocksize, offset, GFP_NOFS); in fscrypt_zeroout_range() 171 offset += blocksize; in fscrypt_zeroout_range()
|
/fs/ntfs/ |
D | aops.c | 177 unsigned int blocksize, vcn_ofs; in ntfs_read_block() local 188 blocksize = vol->sb->s_blocksize; in ntfs_read_block() 192 create_empty_buffers(page, blocksize, 0); in ntfs_read_block() 214 lblock = (ni->allocated_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block() 222 zblock = (init_size + blocksize - 1) >> blocksize_bits; in ntfs_read_block() 321 zero_user(page, i * blocksize, blocksize); in ntfs_read_block() 543 unsigned int blocksize, vcn_ofs; in ntfs_write_block() local 557 blocksize = vol->sb->s_blocksize; in ntfs_write_block() 561 create_empty_buffers(page, blocksize, in ntfs_write_block() 590 dblock = (i_size + blocksize - 1) >> blocksize_bits; in ntfs_write_block() [all …]
|
D | file.c | 585 unsigned blocksize, u; in ntfs_prepare_pages_for_non_resident_write() local 606 blocksize = vol->sb->s_blocksize; in ntfs_prepare_pages_for_non_resident_write() 617 create_empty_buffers(page, blocksize, 0); in ntfs_prepare_pages_for_non_resident_write() 649 bh_end = bh_pos + blocksize; in ntfs_prepare_pages_for_non_resident_write() 687 blocksize); in ntfs_prepare_pages_for_non_resident_write() 762 blocksize); in ntfs_prepare_pages_for_non_resident_write() 781 blocksize); in ntfs_prepare_pages_for_non_resident_write() 820 zero_user(page, bh_offset(bh), blocksize); in ntfs_prepare_pages_for_non_resident_write() 945 blocksize); in ntfs_prepare_pages_for_non_resident_write() 1171 } 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); 87 u32 blocksize) in btrfs_unuse_block_rsv() argument 89 btrfs_block_rsv_add_bytes(block_rsv, blocksize, false); in btrfs_unuse_block_rsv()
|
D | block-rsv.c | 486 u32 blocksize) in btrfs_use_block_rsv() argument 499 ret = btrfs_block_rsv_use_bytes(block_rsv, blocksize); in btrfs_use_block_rsv() 527 ret = btrfs_reserve_metadata_bytes(root, block_rsv, blocksize, in btrfs_use_block_rsv() 538 ret = btrfs_block_rsv_use_bytes(global_rsv, blocksize); in btrfs_use_block_rsv()
|
/fs/ntfs3/ |
D | fsntfs.c | 834 u32 blocksize; in ntfs_update_mftmirr() local 841 blocksize = sb->s_blocksize; in ntfs_update_mftmirr() 851 for (; bytes >= blocksize; bytes -= blocksize) { in ntfs_update_mftmirr() 871 memcpy(bh2->b_data, bh1->b_data, blocksize); in ntfs_update_mftmirr() 987 u32 blocksize = sb->s_blocksize; in ntfs_sb_read() local 989 u32 off = lbo & (blocksize - 1); in ntfs_sb_read() 990 u32 op = blocksize - off; in ntfs_sb_read() 992 for (; bytes; block += 1, off = 0, op = blocksize) { in ntfs_sb_read() 993 struct buffer_head *bh = __bread(bdev, block, blocksize); in ntfs_sb_read() 1015 u32 blocksize = sb->s_blocksize; in ntfs_sb_write() local [all …]
|
D | bitmap.c | 508 u32 blocksize = sb->s_blocksize; in wnd_rescan() local 620 vbo += blocksize; in wnd_rescan() 622 len -= blocksize; in wnd_rescan() 623 lbo += blocksize; in wnd_rescan() 654 u32 blocksize = sb->s_blocksize; in wnd_init() local 655 u32 wbits = blocksize * 8; in wnd_init() 1317 u32 blocksize = sb->s_blocksize; in wnd_extend() local 1318 u32 wbits = blocksize * 8; in wnd_extend() 1362 vbo = (u64)iw * blocksize; in wnd_extend() 1375 __bitmap_clear(buf, b0, blocksize * 8 - b0); in wnd_extend()
|
/fs/ext2/ |
D | super.c | 819 int blocksize = BLOCK_SIZE; in ext2_fill_super() local 850 blocksize = sb_min_blocksize(sb, BLOCK_SIZE); in ext2_fill_super() 851 if (!blocksize) { in ext2_fill_super() 860 if (blocksize != BLOCK_SIZE) { in ext2_fill_super() 861 logic_sb_block = (sb_block*BLOCK_SIZE) / blocksize; in ext2_fill_super() 862 offset = (sb_block*BLOCK_SIZE) % blocksize; in ext2_fill_super() 956 blocksize = BLOCK_SIZE << le32_to_cpu(sbi->s_es->s_log_block_size); in ext2_fill_super() 959 if (!dax_supported(dax_dev, sb->s_bdev, blocksize, 0, in ext2_fill_super() 968 if (sb->s_blocksize != blocksize) { in ext2_fill_super() 971 if (!sb_set_blocksize(sb, blocksize)) { in ext2_fill_super() [all …]
|
/fs/adfs/ |
D | super.c | 288 unsigned int blocksize = BLOCK_SIZE; in adfs_probe() local 293 if (sb->s_blocksize != blocksize && in adfs_probe() 294 !sb_set_blocksize(sb, blocksize)) { in adfs_probe() 318 blocksize = 1 << dr->log2secsize; in adfs_probe() 319 if (sb->s_blocksize == blocksize) { in adfs_probe()
|
/fs/reiserfs/ |
D | file.c | 175 unsigned blocksize; in reiserfs_commit_page() local 186 blocksize = i_blocksize(inode); in reiserfs_commit_page() 201 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()
|
/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() 377 unsigned blocksize; in sysv_truncate() local 383 blocksize = inode->i_sb->s_blocksize; in sysv_truncate() 384 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()
|