/fs/ocfs2/ |
D | blockcheck.c | 338 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs() 345 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs() 346 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs() 387 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs() 403 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs() 404 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs() 412 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs() 413 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs() 418 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
|
D | aops.c | 108 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block() 110 bh_result->b_size); in ocfs2_symlink_get_block() 134 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block() 184 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block() 438 unsigned blocksize = head->b_size; in walk_page_buffers() 556 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_direct_IO_get_blocks() 619 bh_result->b_size = contig_blocks << blocksize_bits; in ocfs2_direct_IO_get_blocks() 865 zero_user(page, block_start, bh->b_size); in ocfs2_map_page_blocks() 1020 block_end = block_start + bh->b_size; in ocfs2_zero_new_buffers()
|
D | localalloc.c | 379 alloc_copy = kmalloc(bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc() 384 memcpy(alloc_copy, alloc, bh->b_size); in ocfs2_shutdown_local_alloc() 470 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery() 475 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery() 1237 alloc_copy = kmalloc(osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window() 1243 memcpy(alloc_copy, alloc, osb->local_alloc_bh->b_size); in ocfs2_local_alloc_slide_window()
|
/fs/gfs2/ |
D | meta_io.h | 19 memset(bh->b_data, 0, bh->b_size); in gfs2_buffer_clear() 24 BUG_ON(head > bh->b_size); in gfs2_buffer_clear_tail() 25 memset(bh->b_data + head, 0, bh->b_size - head); in gfs2_buffer_clear_tail() 35 from_bh->b_size - from_head); in gfs2_buffer_copy_tail() 36 memset(to_bh->b_data + to_bh->b_size + to_head - from_head, in gfs2_buffer_copy_tail()
|
D | bmap.c | 454 dblks = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, in gfs2_bmap_alloc() 546 bh_map->b_size = dblks << inode->i_blkbits; in gfs2_bmap_alloc() 571 const unsigned int maxlen = bh_map->b_size >> inode->i_blkbits; in gfs2_block_map() 616 len = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, &eob); in gfs2_block_map() 617 bh_map->b_size = (len << inode->i_blkbits); in gfs2_block_map() 652 bh.b_size = 1 << (inode->i_blkbits + (create ? 0 : 5)); in gfs2_extent_map() 654 *extlen = bh.b_size >> inode->i_blkbits; in gfs2_extent_map() 1276 bh.b_size = size; in gfs2_write_alloc_required() 1280 size -= bh.b_size; in gfs2_write_alloc_required() 1281 lblock += (bh.b_size >> ip->i_inode.i_blkbits); in gfs2_write_alloc_required()
|
D | dir.c | 592 char *bh_end = bh->b_data + bh->b_size; in dirent_next() 652 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del() 688 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_alloc() 773 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search() 793 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search() 824 gfs2_qstr2dirent(&name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf() 872 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash() 875 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash() 1316 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf() 1450 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
|
D | lops.c | 109 return (__force __be64 *)(bh->b_data + bh->b_size); in bh_ptr_end() 272 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements() 581 bh1->b_size); in gfs2_write_blocks() 669 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
|
/fs/reiserfs/ |
D | lbalance.c | 144 || (!op_is_left_mergeable(&(ih->ih_key), src->b_size))) in leaf_copy_boundary_item() 204 if (!dest_nr_item || !op_is_left_mergeable(&(dih->ih_key), src->b_size)) in leaf_copy_boundary_item() 233 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item() 260 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size, in leaf_copy_boundary_item() 263 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size); in leaf_copy_boundary_item() 267 dest->b_size)); in leaf_copy_boundary_item() 333 j = location = (dest_before == 0) ? dest->b_size : ih_location(ih - 1); in leaf_copy_items_entirely() 412 RFALSE(op_is_left_mergeable(&(ih->ih_key), src->b_size), in leaf_item_bottle() 450 dest->b_size); in leaf_item_bottle() 695 (B_N_PKEY(S0, 0), S0->b_size)), in leaf_shift_left() [all …]
|
D | prints.c | 146 bdevname(bh->b_bdev, b), bh->b_size, in sprintf_buffer_head() 683 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head() 687 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr) in check_leaf_block_head() 704 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head() 710 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
|
/fs/fat/ |
D | fatent.c | 48 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 52 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 203 WARN_ON(ent12_p[0] > (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 2))); in fat12_ent_next() 204 WARN_ON(ent12_p[1] > (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))); in fat12_ent_next() 205 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next() 211 WARN_ON(ent12_p[0] != (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))); in fat12_ent_next() 229 if (fatent->u.ent16_p < (__le16 *)(bh->b_data + (bh->b_size - 2))) { in fat16_ent_next() 241 if (fatent->u.ent32_p < (__le32 *)(bh->b_data + (bh->b_size - 4))) { in fat32_ent_next()
|
/fs/ |
D | mpage.c | 202 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 229 map_bh->b_size = 0; in do_mpage_readpage() 232 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage() 264 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 311 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage() 526 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
|
D | buffer.c | 368 bh->b_state, bh->b_size); in __find_get_block_slow() 1004 bh->b_size = size; in alloc_page_buffers() 1105 if (bh->b_size == size) { in grow_dev_page() 1416 bh->b_blocknr == block && bh->b_size == size) { in lookup_bh_lru() 1592 unsigned int next_off = curr_off + bh->b_size; in block_invalidatepage() 1759 WARN_ON(bh->b_size != blocksize); in __block_write_full_page() 1888 block_end = block_start + bh->b_size; in page_zero_new_buffers() 1948 WARN_ON(bh->b_size != blocksize); in __block_prepare_write() 2244 WARN_ON(bh->b_size != blocksize); in block_read_full_page() 2886 WARN_ON(bh->b_size != blocksize); in block_truncate_page() [all …]
|
D | ioctl.c | 277 tmp.b_size = map_len; in __generic_block_fiemap() 315 size = tmp.b_size; in __generic_block_fiemap() 318 length -= tmp.b_size; in __generic_block_fiemap()
|
/fs/ext4/ |
D | inode.c | 1162 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext4_get_block() 1181 bh_result->b_size = (ret << inode->i_blkbits); in ext4_get_block() 1289 unsigned blocksize = head->b_size; in walk_page_buffers() 1644 unsigned int next_off = curr_off + bh->b_size; in ext4_da_page_release_reservation() 1756 int blocks = exbh->b_size >> inode->i_blkbits; in mpage_put_bnr_to_bhs() 1831 blocks = bh->b_size >> inode->i_blkbits; in __unmap_underlying_blocks() 1910 new.b_size = lbh->b_size; in mpage_da_map_blocks() 1916 if (!new.b_size) in mpage_da_map_blocks() 1948 lbh->b_size >> mpd->inode->i_blkbits, err); in mpage_da_map_blocks() 1956 lbh->b_size >> mpd->inode->i_blkbits); in mpage_da_map_blocks() [all …]
|
D | xattr.c | 166 error = ext4_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size); in ext4_xattr_check_block() 238 error = ext4_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext4_xattr_block_get() 673 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext4_xattr_block_find() 676 i->name, bs->bh->b_size, 1); in ext4_xattr_block_find() 743 s->base = kmalloc(bs->bh->b_size, GFP_NOFS); in ext4_xattr_block_set() 747 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext4_xattr_block_set() 751 s->end = s->base + bs->bh->b_size; in ext4_xattr_block_set() 834 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext4_xattr_block_set() 1189 end = bh->b_data + bh->b_size; in ext4_expand_extra_isize_ea()
|
/fs/jfs/ |
D | inode.c | 196 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block() 235 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block() 253 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
|
/fs/xfs/linux-2.6/ |
D | xfs_aops.c | 426 bio->bi_sector = bh->b_blocknr * (bh->b_size >> 9); in xfs_alloc_ioend_bio() 465 return bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh)); in bio_add_buffer() 519 if (bio_add_buffer(bio, bh) != bh->b_size) { in xfs_submit_ioend() 591 ioend->io_size += bh->b_size; in xfs_add_to_ioend() 656 ret += bh->b_size; in xfs_probe_page() 684 total += bh->b_size; in xfs_probe_cluster() 1377 ASSERT(bh_result->b_size >= (1 << inode->i_blkbits)); in __xfs_get_blocks() 1378 size = bh_result->b_size; in __xfs_get_blocks() 1440 bh_result->b_size = (ssize_t)min_t(xfs_off_t, LONG_MAX, offset); in __xfs_get_blocks()
|
/fs/jbd2/ |
D | transaction.c | 697 jbd2_alloc(jh2bh(jh)->b_size, in do_get_write_access() 744 memcpy(jh->b_frozen_data, source+offset, jh2bh(jh)->b_size); in do_get_write_access() 763 jbd2_free(frozen_buffer, bh->b_size); in do_get_write_access() 923 committed_data = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); in jbd2_journal_get_undo_access() 944 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access() 950 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access() 981 triggers->t_commit(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_commit_trigger() 1906 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidatepage()
|
D | commit.c | 328 (void *)(addr + offset_in_page(bh->b_data)), bh->b_size); in jbd2_checksum_data() 456 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction() 577 space_left = bh->b_size - sizeof(journal_header_t); in jbd2_journal_commit_transaction() 882 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction() 890 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
|
/fs/ext2/ |
D | xattr.c | 174 end = bh->b_data + bh->b_size; in ext2_xattr_get() 274 end = bh->b_data + bh->b_size; in ext2_xattr_list() 407 end = bh->b_data + bh->b_size; in ext2_xattr_set() 507 header = kmalloc(bh->b_size, GFP_KERNEL); in ext2_xattr_set() 511 memcpy(header, HDR(bh), bh->b_size); in ext2_xattr_set() 676 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
|
/fs/ext3/ |
D | xattr.c | 173 error = ext3_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size); in ext3_xattr_check_block() 245 error = ext3_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext3_xattr_block_get() 663 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext3_xattr_block_find() 666 i->name, bs->bh->b_size, 1); in ext3_xattr_block_find() 733 s->base = kmalloc(bs->bh->b_size, GFP_NOFS); in ext3_xattr_block_set() 737 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext3_xattr_block_set() 741 s->end = s->base + bs->bh->b_size; in ext3_xattr_block_set() 823 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext3_xattr_block_set()
|
/fs/jbd/ |
D | transaction.c | 687 jbd_alloc(jh2bh(jh)->b_size, in do_get_write_access() 734 memcpy(jh->b_frozen_data, source+offset, jh2bh(jh)->b_size); in do_get_write_access() 747 jbd_free(frozen_buffer, bh->b_size); in do_get_write_access() 904 committed_data = jbd_alloc(jh2bh(jh)->b_size, GFP_NOFS); in journal_get_undo_access() 925 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in journal_get_undo_access() 931 jbd_free(committed_data, bh->b_size); in journal_get_undo_access() 2050 unsigned int next_off = curr_off + bh->b_size; in journal_invalidatepage()
|
D | journal.c | 337 tmp = jbd_alloc(bh_in->b_size, GFP_NOFS); in journal_write_metadata_buffer() 340 jbd_free(tmp, bh_in->b_size); in journal_write_metadata_buffer() 346 memcpy(tmp, mapped_data + new_offset, jh2bh(jh_in)->b_size); in journal_write_metadata_buffer() 374 new_bh->b_size = jh2bh(jh_in)->b_size; in journal_write_metadata_buffer() 1819 jbd_free(jh->b_frozen_data, bh->b_size); in __journal_remove_journal_head() 1825 jbd_free(jh->b_committed_data, bh->b_size); in __journal_remove_journal_head()
|
D | commit.c | 397 jbd_free(jh->b_committed_data, bh->b_size); in journal_commit_transaction() 566 space_left = bh->b_size - sizeof(journal_header_t); in journal_commit_transaction() 824 jbd_free(jh->b_committed_data, bh->b_size); in journal_commit_transaction() 831 jbd_free(jh->b_frozen_data, bh->b_size); in journal_commit_transaction()
|
/fs/minix/ |
D | bitmap.c | 30 for (j=0; j<bh->b_size; j++) in count_free() 37 i = ((numbits - (numblocks-1) * bh->b_size * 8) / 16) * 2; in count_free()
|