Home
last modified time | relevance | path

Searched refs:b_size (Results 1 – 25 of 82) sorted by relevance

1234

/fs/gfs2/
Dmeta_io.h19 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()
Dbmap.c73 if (dsize > (dibh->b_size - sizeof(struct gfs2_dinode))) in gfs2_unstuffer_page()
74 dsize = dibh->b_size - sizeof(struct gfs2_dinode); in gfs2_unstuffer_page()
276 const __be64 *endp = (const __be64 *)(bh->b_data + bh->b_size); in gfs2_metapath_ra()
478 dblks = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, in gfs2_bmap_alloc()
582 bh_map->b_size = dblks << inode->i_blkbits; in gfs2_bmap_alloc()
607 const unsigned int maxlen = bh_map->b_size >> inode->i_blkbits; in gfs2_block_map()
653 len = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, &eob); in gfs2_block_map()
654 bh_map->b_size = (len << inode->i_blkbits); in gfs2_block_map()
690 bh.b_size = 1 << (inode->i_blkbits + (create ? 0 : 5)); in gfs2_extent_map()
692 *extlen = bh.b_size >> inode->i_blkbits; in gfs2_extent_map()
[all …]
Dfile.c340 bh.b_size = size; in gfs2_allocate_page_backing()
344 size -= bh.b_size; in gfs2_allocate_page_backing()
345 lblock += (bh.b_size >> inode->i_blkbits); in gfs2_allocate_page_backing()
696 bh_map.b_size = len; in fallocate_chunk()
702 len -= bh_map.b_size; in fallocate_chunk()
703 nr_blks = bh_map.b_size >> inode->i_blkbits; in fallocate_chunk()
Dlops.c144 return (__force __be64 *)(bh->b_data + bh->b_size); in bh_ptr_end()
178 memset(bh->b_data, 0, bh->b_size); in gfs2_log_get_buf()
229 bh->b_size = sdp->sd_sb.sb_bsize; in gfs2_log_fake_buf()
398 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements()
682 bh1->b_size); in gfs2_write_blocks()
770 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
Ddir.c609 char *bh_end = bh->b_data + bh->b_size; in dirent_next()
669 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del()
705 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_alloc()
785 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search()
805 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search()
843 gfs2_qstr2dirent(&name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf()
891 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash()
894 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash()
1348 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf()
1509 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
/fs/ocfs2/
Dblockcheck.c496 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs()
503 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs()
504 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs()
548 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
565 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
566 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs()
574 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
575 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs()
580 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
Dlocalalloc.c437 alloc_copy = kmalloc(bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc()
442 memcpy(alloc_copy, alloc, bh->b_size); in ocfs2_shutdown_local_alloc()
521 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
526 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
1252 alloc_copy = kmalloc(osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
1258 memcpy(alloc_copy, alloc, osb->local_alloc_bh->b_size); in ocfs2_local_alloc_slide_window()
Daops.c110 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block()
112 bh_result->b_size); in ocfs2_symlink_get_block()
135 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block()
185 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block()
428 unsigned blocksize = head->b_size; in walk_page_buffers()
518 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_direct_IO_get_blocks()
555 bh_result->b_size = contig_blocks << blocksize_bits; in ocfs2_direct_IO_get_blocks()
814 zero_user(page, block_start, bh->b_size); in ocfs2_map_page_blocks()
993 block_end = block_start + bh->b_size; in ocfs2_zero_new_buffers()
/fs/
Dmpage.c188 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
215 map_bh->b_size = 0; in do_mpage_readpage()
218 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
250 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
303 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
376 map_bh.b_size = 0; in mpage_readpages()
410 map_bh.b_size = 0; in mpage_readpage()
527 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
Dbuffer.c222 bh->b_state, bh->b_size); in __find_get_block_slow()
860 bh->b_size = size; in alloc_page_buffers()
970 if (bh->b_size == size) { in grow_dev_page()
1278 bh->b_blocknr == block && bh->b_size == size) { in lookup_bh_lru()
1464 unsigned int next_off = curr_off + bh->b_size; in block_invalidatepage()
1638 WARN_ON(bh->b_size != blocksize); in __block_write_full_page()
1767 block_end = block_start + bh->b_size; in page_zero_new_buffers()
1830 WARN_ON(bh->b_size != blocksize); in __block_write_begin()
2096 WARN_ON(bh->b_size != blocksize); in block_read_full_page()
2681 map_bh.b_size = blocksize; in nobh_truncate_page()
[all …]
/fs/reiserfs/
Dlbalance.c144 || (!op_is_left_mergeable(&(ih->ih_key), src->b_size))) in leaf_copy_boundary_item()
205 if (!dest_nr_item || !op_is_left_mergeable(&(dih->ih_key), src->b_size)) in leaf_copy_boundary_item()
234 le_ih_k_offset(ih) + op_bytes_number(ih, src->b_size), in leaf_copy_boundary_item()
261 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size, in leaf_copy_boundary_item()
264 (bytes_or_entries / UNFM_P_SIZE) * dest->b_size); in leaf_copy_boundary_item()
268 dest->b_size)); in leaf_copy_boundary_item()
334 j = location = (dest_before == 0) ? dest->b_size : ih_location(ih - 1); in leaf_copy_items_entirely()
414 RFALSE(op_is_left_mergeable(&(ih->ih_key), src->b_size), in leaf_item_bottle()
453 dest->b_size); in leaf_item_bottle()
697 (B_N_PKEY(S0, 0), S0->b_size)), in leaf_shift_left()
[all …]
Dprints.c146 bdevname(bh->b_bdev, b), bh->b_size, in sprintf_buffer_head()
711 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head()
714 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr) in check_leaf_block_head()
728 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head()
732 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
/fs/ext4/
Dpage-io.c229 (offset+bh->b_size <= io_end_offset)) in ext4_end_bio()
232 offset += bh->b_size; in ext4_end_bio()
297 bio->bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init()
347 io->io_end->size += bh->b_size; in io_submit_add_bh()
349 ret = bio_add_page(io->io_bio, bh->b_page, bh->b_size, bh_offset(bh)); in io_submit_add_bh()
350 if (ret != bh->b_size) in io_submit_add_bh()
Dinode.c608 map.m_len = bh->b_size >> inode->i_blkbits; in _ext4_get_block()
627 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block()
733 unsigned blocksize = head->b_size; in walk_page_buffers()
1230 unsigned int next_off = curr_off + bh->b_size; in ext4_da_page_release_reservation()
1371 block_start += bh->b_size; in mpage_da_submit_io()
1487 unsigned max_blocks = mpd->b_size >> mpd->inode->i_blkbits; in mpage_da_map_and_submit()
1495 if ((mpd->b_size == 0) || in mpage_da_map_and_submit()
1561 mpd->b_size >> mpd->inode->i_blkbits, err); in mpage_da_map_and_submit()
1627 sector_t logical, size_t b_size, in mpage_add_bh_to_extent() argument
1631 int nrblocks = mpd->b_size >> mpd->inode->i_blkbits; in mpage_add_bh_to_extent()
[all …]
Dxattr.c164 return ext4_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size); in ext4_xattr_check_block()
236 error = ext4_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext4_xattr_block_get()
674 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext4_xattr_block_find()
677 i->name, bs->bh->b_size, 1); in ext4_xattr_block_find()
744 s->base = kmalloc(bs->bh->b_size, GFP_NOFS); in ext4_xattr_block_set()
748 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext4_xattr_block_set()
752 s->end = s->base + bs->bh->b_size; in ext4_xattr_block_set()
855 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext4_xattr_block_set()
1205 end = bh->b_data + bh->b_size; in ext4_expand_extra_isize_ea()
/fs/nilfs2/
Dsegbuf.c194 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc()
204 size = min_t(unsigned long, bytes, bh->b_size); in nilfs_segbuf_fill_in_segsum_crc()
223 bh->b_size - sizeof(raw_sum->ss_datasum)); in nilfs_segbuf_fill_in_data_crc()
227 crc = crc32_le(crc, bh->b_data, bh->b_size); in nilfs_segbuf_fill_in_data_crc()
231 crc = crc32_le(crc, kaddr + bh_offset(bh), bh->b_size); in nilfs_segbuf_fill_in_data_crc()
450 len = bio_add_page(wi->bio, bh->b_page, bh->b_size, bh_offset(bh)); in nilfs_segbuf_submit_bh()
451 if (len == bh->b_size) { in nilfs_segbuf_submit_bh()
Drecovery.c261 BUG_ON((*pbh)->b_size < *offset); in nilfs_read_summary_info()
262 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info()
290 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info()
296 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info()
497 memcpy(kaddr + bh_offset(bh_org), bh_org->b_data, bh_org->b_size); in nilfs_recovery_copy_block()
714 memset(bh->b_data, 0, bh->b_size); in nilfs_finish_roll_forward()
/fs/fat/
Dfatent.c48 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()
206 WARN_ON(ent12_p[0] > (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 2))); in fat12_ent_next()
207 WARN_ON(ent12_p[1] > (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))); in fat12_ent_next()
208 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next()
214 WARN_ON(ent12_p[0] != (u8 *)(bhs[0]->b_data + (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/jfs/
Dinode.c203 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block()
242 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block()
260 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
/fs/ext2/
Dxattr.c178 end = bh->b_data + bh->b_size; in ext2_xattr_get()
267 end = bh->b_data + bh->b_size; in ext2_xattr_list()
403 end = bh->b_data + bh->b_size; in ext2_xattr_set()
503 header = kmalloc(bh->b_size, GFP_KERNEL); in ext2_xattr_set()
507 memcpy(header, HDR(bh), bh->b_size); in ext2_xattr_set()
673 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
/fs/jbd2/
Dtransaction.c772 jbd2_alloc(jh2bh(jh)->b_size, in do_get_write_access()
821 memcpy(jh->b_frozen_data, source+offset, jh2bh(jh)->b_size); in do_get_write_access()
840 jbd2_free(frozen_buffer, bh->b_size); in do_get_write_access()
1005 committed_data = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); in jbd2_journal_get_undo_access()
1026 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access()
1032 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access()
1066 triggers->t_frozen(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_frozen_trigger()
2020 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidatepage()
Dcommit.c290 (void *)(addr + offset_in_page(bh->b_data)), bh->b_size); in jbd2_checksum_data()
428 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
562 space_left = bh->b_size - sizeof(journal_header_t); in jbd2_journal_commit_transaction()
926 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
934 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
/fs/ext3/
Dxattr.c168 error = ext3_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size); in ext3_xattr_check_block()
240 error = ext3_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext3_xattr_block_get()
660 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext3_xattr_block_find()
663 i->name, bs->bh->b_size, 1); in ext3_xattr_block_find()
730 s->base = kmalloc(bs->bh->b_size, GFP_NOFS); in ext3_xattr_block_set()
734 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext3_xattr_block_set()
738 s->end = s->base + bs->bh->b_size; in ext3_xattr_block_set()
828 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext3_xattr_block_set()
/fs/jbd/
Dtransaction.c676 jbd_alloc(jh2bh(jh)->b_size, in do_get_write_access()
722 memcpy(jh->b_frozen_data, source+offset, jh2bh(jh)->b_size); in do_get_write_access()
735 jbd_free(frozen_buffer, bh->b_size); in do_get_write_access()
900 committed_data = jbd_alloc(jh2bh(jh)->b_size, GFP_NOFS); in journal_get_undo_access()
921 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in journal_get_undo_access()
927 jbd_free(committed_data, bh->b_size); in journal_get_undo_access()
2048 unsigned int next_off = curr_off + bh->b_size; in journal_invalidatepage()
/fs/xfs/
Dxfs_aops.c415 bio->bi_sector = bh->b_blocknr * (bh->b_size >> 9); in xfs_alloc_ioend_bio()
453 return bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh)); in bio_add_buffer()
507 if (bio_add_buffer(bio, bh) != bh->b_size) { in xfs_submit_ioend()
578 ioend->io_size += bh->b_size; in xfs_add_to_ioend()
1143 ASSERT(bh_result->b_size >= (1 << inode->i_blkbits)); in __xfs_get_blocks()
1144 size = bh_result->b_size; in __xfs_get_blocks()
1250 bh_result->b_size = mapping_size; in __xfs_get_blocks()

1234