/fs/gfs2/ |
D | meta_io.h | 16 memset(bh->b_data, 0, bh->b_size); in gfs2_buffer_clear() 21 BUG_ON(head > bh->b_size); in gfs2_buffer_clear_tail() 22 memset(bh->b_data + head, 0, bh->b_size - head); in gfs2_buffer_clear_tail() 32 from_bh->b_size - from_head); in gfs2_buffer_copy_tail() 33 memset(to_bh->b_data + to_bh->b_size + to_head - from_head, in gfs2_buffer_copy_tail()
|
D | bmap.c | 284 return (const __be64 *)(bh->b_data + bh->b_size); in metaend() 426 const __be64 *end = (__be64 *)(bh->b_data + bh->b_size); in gfs2_extent_length() 1201 loff_t length = bh_map->b_size; in gfs2_block_map() 1217 if (iomap.length > bh_map->b_size) { in gfs2_block_map() 1218 iomap.length = bh_map->b_size; in gfs2_block_map() 1223 bh_map->b_size = iomap.length; in gfs2_block_map() 1617 end = (__be64 *)(bh->b_data + bh->b_size); in find_nonnull_ptr() 1658 *end = (__be64 *)(bh->b_data + bh->b_size); in metapointer_range() 2252 bh.b_size = size; in gfs2_map_journal_extents() 2256 rc = gfs2_add_jextent(jd, lblock, bh.b_blocknr, bh.b_size >> shift); in gfs2_map_journal_extents() [all …]
|
D | dir.c | 637 char *bh_end = bh->b_data + bh->b_size; in dirent_next() 697 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del() 747 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_split_alloc() 830 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search() 850 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search() 892 gfs2_qstr2dirent(&empty_name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf() 940 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash() 943 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash() 1427 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf() 1599 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
|
D | meta_io.c | 208 len -= bh->b_size; in gfs2_meta_read_endio() 227 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in gfs2_submit_bhs() 230 if (!bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh))) { in gfs2_submit_bhs()
|
D | lops.c | 186 size -= bh->b_size; in gfs2_end_log_write_bh() 362 gfs2_log_write(sdp, sdp->sd_jdesc, bh->b_page, bh->b_size, in gfs2_log_write_bh() 704 bd2->bd_bh->b_size); in gfs2_before_commit() 817 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements() 1042 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
|
D | aops.c | 44 unsigned int bsize = head->b_size; in gfs2_page_add_databufs() 652 if (pos + bh->b_size > stop) in gfs2_invalidate_folio() 657 pos += bh->b_size; in gfs2_invalidate_folio()
|
/fs/ocfs2/ |
D | blockcheck.c | 455 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs() 462 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs() 463 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs() 508 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs() 525 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs() 526 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs() 534 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs() 535 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs() 540 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
|
D | aops.c | 101 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block() 103 bh_result->b_size); in ocfs2_symlink_get_block() 139 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block() 189 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block() 423 unsigned blocksize = head->b_size; in walk_page_buffers() 671 zero_user(page, block_start, bh->b_size); in ocfs2_map_page_blocks() 887 block_end = block_start + bh->b_size; in ocfs2_zero_new_buffers() 2155 unsigned len, total_len = bh_result->b_size; in ocfs2_dio_wr_get_block() 2255 bh_result->b_size = len; in ocfs2_dio_wr_get_block()
|
/fs/nilfs2/ |
D | segbuf.c | 106 memset(bh->b_data, 0, bh->b_size); in nilfs_segbuf_extend_segsum() 187 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc() 197 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc() 216 bh->b_size - sizeof(raw_sum->ss_datasum)); in nilfs_segbuf_fill_in_data_crc() 220 crc = crc32_le(crc, bh->b_data, bh->b_size); in nilfs_segbuf_fill_in_data_crc() 224 crc = crc32_le(crc, kaddr + bh_offset(bh), bh->b_size); in nilfs_segbuf_fill_in_data_crc() 388 len = bio_add_page(wi->bio, bh->b_page, bh->b_size, bh_offset(bh)); in nilfs_segbuf_submit_bh() 389 if (len == bh->b_size) { in nilfs_segbuf_submit_bh()
|
D | recovery.c | 249 BUG_ON((*pbh)->b_size < *offset); in nilfs_read_summary_info() 250 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info() 278 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info() 284 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info() 486 memcpy(kaddr + from, bh_org->b_data, bh_org->b_size); in nilfs_recovery_copy_block() 702 memset(bh->b_data, 0, bh->b_size); in nilfs_finish_roll_forward()
|
D | page.c | 108 memcpy(kaddr1 + bh_offset(dbh), kaddr0 + bh_offset(sbh), sbh->b_size); in nilfs_copy_buffer() 205 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page() 420 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page() 440 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
|
/fs/reiserfs/ |
D | lbalance.c | 158 || (!op_is_left_mergeable(&ih->ih_key, src->b_size))) in leaf_copy_boundary_item() 224 if (!dest_nr_item || !op_is_left_mergeable(&dih->ih_key, src->b_size)) in leaf_copy_boundary_item() 258 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item() 285 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size, in leaf_copy_boundary_item() 288 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size); in leaf_copy_boundary_item() 292 dest->b_size)); in leaf_copy_boundary_item() 364 j = location = (dest_before == 0) ? dest->b_size : ih_location(ih - 1); in leaf_copy_items_entirely() 452 RFALSE(op_is_left_mergeable(&ih->ih_key, src->b_size), in leaf_item_bottle() 497 dest->b_size); in leaf_item_bottle() 780 (leaf_key(S0, 0), S0->b_size)), in leaf_shift_left() [all …]
|
D | prints.c | 159 bh->b_bdev, bh->b_size, in scnprintf_buffer_head() 738 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head() 741 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr) in check_leaf_block_head() 752 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head() 756 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
|
D | stree.c | 539 return is_leaf(bh->b_data, bh->b_size, bh); in is_tree_node() 541 return is_internal(bh->b_data, bh->b_size, bh); in is_tree_node() 1186 (PATH_PLAST_BUFFER(tb->tb_path)->b_size); in calc_deleted_bytes_number() 1547 cur_index += bh->b_size; in unmap_buffers() 2053 get_last_bh(path)->b_size) != in check_research_for_paste() 2056 get_last_bh(path)->b_size) != in check_research_for_paste() 2066 get_last_bh(path)->b_size) != in check_research_for_paste()
|
/fs/ |
D | buffer.c | 235 bh->b_state, bh->b_size, bdev, in __find_get_block_slow() 311 valid = fsverity_verify_blocks(page_folio(bh->b_page), bh->b_size, in verify_bh() 335 bh->b_size, bh_offset(bh)); in decrypt_bh() 880 bh->b_size = size; in alloc_page_buffers() 995 if (bh->b_size == size) { in grow_dev_page() 1320 bh->b_size == size) { in lookup_bh_lru() 1545 size_t next_off = curr_off + bh->b_size; in block_invalidate_folio() 1763 blocksize = bh->b_size; in __block_write_full_page() 1787 WARN_ON(bh->b_size != blocksize); in __block_write_full_page() 1916 block_end = block_start + bh->b_size; in page_zero_new_buffers() [all …]
|
D | mpage.c | 177 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 205 map_bh->b_size = 0; in do_mpage_readpage() 208 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 240 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 298 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 539 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
|
/fs/fat/ |
D | fatent.c | 47 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 51 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 204 (bhs[0]->b_size - 2))); in fat12_ent_next() 206 (bhs[0]->b_size - 1))); in fat12_ent_next() 207 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next() 214 (bhs[0]->b_size - 1))); in fat12_ent_next() 232 if (fatent->u.ent16_p < (__le16 *)(bh->b_data + (bh->b_size - 2))) { in fat16_ent_next() 244 if (fatent->u.ent32_p < (__le32 *)(bh->b_data + (bh->b_size - 4))) { in fat32_ent_next()
|
/fs/ext4/ |
D | page-io.c | 131 bh_offset(bh) + bh->b_size > bio_end) { in ext4_finish_bio() 402 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio() 426 bh->b_size, bh_offset(bh)); in io_submit_add_bh() 427 if (ret != bh->b_size) in io_submit_add_bh() 429 wbc_account_cgroup_owner(io->io_wbc, pagecache_page, bh->b_size); in io_submit_add_bh()
|
/fs/hpfs/ |
D | file.c | 87 if (bh_result->b_size >> 9 < n_secs) in hpfs_get_block() 88 n_secs = bh_result->b_size >> 9; in hpfs_get_block() 95 bh_result->b_size = n_secs << 9; in hpfs_get_block()
|
/fs/jfs/ |
D | inode.c | 207 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block() 237 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block() 254 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
|
/fs/jbd2/ |
D | commit.c | 338 (void *)(addr + offset_in_page(bh->b_data)), bh->b_size); in jbd2_checksum_data() 368 bh->b_size); in jbd2_block_tag_csum_set() 524 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction() 657 space_left = descriptor->b_size - in jbd2_journal_commit_transaction() 992 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction() 1000 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
|
D | transaction.c | 949 memcpy(jh->b_frozen_data, source + offset, bh->b_size); in jbd2_freeze_jh_data() 1136 frozen_buffer = jbd2_alloc(jh2bh(jh)->b_size, in do_get_write_access() 1164 jbd2_free(frozen_buffer, bh->b_size); in do_get_write_access() 1400 committed_data = jbd2_alloc(jh2bh(jh)->b_size, in jbd2_journal_get_undo_access() 1415 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access() 1421 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access() 1455 triggers->t_frozen(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_frozen_trigger() 2478 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidate_folio()
|
D | journal.c | 409 tmp = jbd2_alloc(bh_in->b_size, GFP_NOFS); in jbd2_journal_write_metadata_buffer() 416 jbd2_free(tmp, bh_in->b_size); in jbd2_journal_write_metadata_buffer() 422 memcpy(tmp, mapped_data + new_offset, bh_in->b_size); in jbd2_journal_write_metadata_buffer() 448 new_bh->b_size = bh_in->b_size; in jbd2_journal_write_metadata_buffer() 3003 static void journal_release_journal_head(struct journal_head *jh, size_t b_size) in journal_release_journal_head() argument 3007 jbd2_free(jh->b_frozen_data, b_size); in journal_release_journal_head() 3011 jbd2_free(jh->b_committed_data, b_size); in journal_release_journal_head() 3030 journal_release_journal_head(jh, bh->b_size); in jbd2_journal_put_journal_head()
|
/fs/ext2/ |
D | xattr.c | 226 end = bh->b_data + bh->b_size; in ext2_xattr_get() 312 end = bh->b_data + bh->b_size; in ext2_xattr_list() 454 end = bh->b_data + bh->b_size; in ext2_xattr_set() 540 header = kmemdup(HDR(bh), bh->b_size, GFP_KERNEL); in ext2_xattr_set() 760 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
|
/fs/ntfs3/ |
D | inode.c | 582 bh->b_size = block_size; in ntfs_get_block_vbo() 601 if (bh->b_size > bytes) in ntfs_get_block_vbo() 602 bh->b_size = bytes; in ntfs_get_block_vbo() 628 if (bytes > bh->b_size) in ntfs_get_block_vbo() 629 bytes = bh->b_size; in ntfs_get_block_vbo() 656 bh->b_size = block_size; in ntfs_get_block_vbo() 666 if (bh->b_size > bytes) in ntfs_get_block_vbo() 667 bh->b_size = bytes; in ntfs_get_block_vbo() 673 bh->b_size = 0x40000000u; in ntfs_get_block_vbo()
|