Home
last modified time | relevance | path

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

1234

/linux-4.19.296/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.c286 return (const __be64 *)(bh->b_data + bh->b_size); in metaend()
429 const __be64 *end = (__be64 *)(bh->b_data + bh->b_size); in gfs2_extent_length()
1218 loff_t length = bh_map->b_size; in gfs2_block_map()
1240 if (iomap.length > bh_map->b_size) { in gfs2_block_map()
1241 iomap.length = bh_map->b_size; in gfs2_block_map()
1246 bh_map->b_size = iomap.length; in gfs2_block_map()
1270 bh.b_size = BIT(inode->i_blkbits + (create ? 0 : 5)); in gfs2_extent_map()
1272 *extlen = bh.b_size >> inode->i_blkbits; in gfs2_extent_map()
1666 end = (__be64 *)(bh->b_data + bh->b_size); in find_nonnull_ptr()
1707 *end = (__be64 *)(bh->b_data + bh->b_size); in metapointer_range()
[all …]
Dmeta_io.c203 len -= bh->b_size; in gfs2_meta_read_endio()
223 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in gfs2_submit_bhs()
227 if (!bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh))) { in gfs2_submit_bhs()
Dlops.c187 size -= bh->b_size; in gfs2_end_log_write_bh()
351 gfs2_log_write(sdp, bh->b_page, bh->b_size, bh_offset(bh), in gfs2_log_write_bh()
469 bd2->bd_bh->b_size); in gfs2_before_commit()
556 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements()
792 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
Ddir.c641 char *bh_end = bh->b_data + bh->b_size; in dirent_next()
701 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del()
751 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_split_alloc()
835 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search()
855 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search()
897 gfs2_qstr2dirent(&empty_name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf()
945 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash()
948 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash()
1432 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf()
1601 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
/linux-4.19.296/fs/ocfs2/
Dblockcheck.c497 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs()
504 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs()
505 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs()
550 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
567 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
568 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs()
576 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
577 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs()
582 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
Dlocalalloc.c442 alloc_copy = kmalloc(bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc()
447 memcpy(alloc_copy, alloc, bh->b_size); in ocfs2_shutdown_local_alloc()
524 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
529 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
1291 alloc_copy = kmalloc(osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
1297 memcpy(alloc_copy, alloc, osb->local_alloc_bh->b_size); in ocfs2_local_alloc_slide_window()
/linux-4.19.296/crypto/
Dtcrypt.c265 u32 *b_size; in test_mb_aead_speed() local
341 b_size = aead_sizes; in test_mb_aead_speed()
343 if (*b_size + authsize > XBUFSIZE * PAGE_SIZE) { in test_mb_aead_speed()
345 authsize + *b_size, in test_mb_aead_speed()
351 *keysize * 8, *b_size); in test_mb_aead_speed()
386 *b_size + (enc ? 0 : authsize), in test_mb_aead_speed()
390 *b_size + (enc ? authsize : 0), in test_mb_aead_speed()
400 *b_size, iv); in test_mb_aead_speed()
412 cur->sgout, *b_size + in test_mb_aead_speed()
419 ret = test_mb_aead_jiffies(data, enc, *b_size, in test_mb_aead_speed()
[all …]
/linux-4.19.296/fs/nilfs2/
Dsegbuf.c106 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()
433 len = bio_add_page(wi->bio, bh->b_page, bh->b_size, bh_offset(bh)); in nilfs_segbuf_submit_bh()
434 if (len == bh->b_size) { in nilfs_segbuf_submit_bh()
Drecovery.c249 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()
485 memcpy(kaddr + bh_offset(bh_org), 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()
Dpage.c109 memcpy(kaddr1 + bh_offset(dbh), kaddr0 + bh_offset(sbh), sbh->b_size); in nilfs_copy_buffer()
206 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page()
424 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page()
444 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
/linux-4.19.296/fs/reiserfs/
Dlbalance.c158 || (!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 …]
Dprints.c159 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()
755 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head()
759 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
/linux-4.19.296/fs/
Dmpage.c199 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
227 map_bh->b_size = 0; in do_mpage_readpage()
230 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
262 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
321 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
581 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
Dbuffer.c238 bh->b_state, bh->b_size, bdev, in __find_get_block_slow()
838 bh->b_size = size; in alloc_page_buffers()
954 if (bh->b_size == size) { in grow_dev_page()
1265 bh->b_size == size) { in lookup_bh_lru()
1487 unsigned int next_off = curr_off + bh->b_size; in block_invalidatepage()
1705 blocksize = bh->b_size; in __block_write_full_page()
1729 WARN_ON(bh->b_size != blocksize); in __block_write_full_page()
1860 block_end = block_start + bh->b_size; in page_zero_new_buffers()
1958 blocksize = head->b_size; in __block_write_begin_int()
1976 WARN_ON(bh->b_size != blocksize); in __block_write_begin_int()
[all …]
/linux-4.19.296/fs/ext4/
Dpage-io.c102 bh_offset(bh) + bh->b_size > bio_end) { in ext4_finish_bio()
380 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio()
408 bh->b_size, bh_offset(bh)); in io_submit_add_bh()
409 if (ret != bh->b_size) in io_submit_add_bh()
411 wbc_account_io(io->io_wbc, pagecache_page, bh->b_size); in io_submit_add_bh()
/linux-4.19.296/fs/fat/
Dfatent.c46 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
50 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
203 (bhs[0]->b_size - 2))); in fat12_ent_next()
205 (bhs[0]->b_size - 1))); in fat12_ent_next()
206 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next()
213 (bhs[0]->b_size - 1))); in fat12_ent_next()
231 if (fatent->u.ent16_p < (__le16 *)(bh->b_data + (bh->b_size - 2))) { in fat16_ent_next()
243 if (fatent->u.ent32_p < (__le32 *)(bh->b_data + (bh->b_size - 4))) { in fat32_ent_next()
/linux-4.19.296/fs/hpfs/
Dfile.c85 if (bh_result->b_size >> 9 < n_secs) in hpfs_get_block()
86 n_secs = bh_result->b_size >> 9; in hpfs_get_block()
93 bh_result->b_size = n_secs << 9; in hpfs_get_block()
/linux-4.19.296/include/linux/firmware/meson/
Dmeson_sm.h26 int meson_sm_call_write(void *buffer, unsigned int b_size, unsigned int cmd_index,
/linux-4.19.296/fs/jfs/
Dinode.c208 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block()
247 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block()
265 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
/linux-4.19.296/fs/ext2/
Dxattr.c179 end = bh->b_data + bh->b_size; in ext2_xattr_get()
269 end = bh->b_data + bh->b_size; in ext2_xattr_list()
408 end = bh->b_data + bh->b_size; in ext2_xattr_set()
509 header = kmalloc(bh->b_size, GFP_KERNEL); in ext2_xattr_set()
513 memcpy(header, HDR(bh), bh->b_size); in ext2_xattr_set()
680 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
/linux-4.19.296/fs/jbd2/
Dcommit.c311 (void *)(addr + offset_in_page(bh->b_data)), bh->b_size); in jbd2_checksum_data()
341 bh->b_size); in jbd2_block_tag_csum_set()
484 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
616 space_left = descriptor->b_size - in jbd2_journal_commit_transaction()
946 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
954 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
Dtransaction.c803 memcpy(jh->b_frozen_data, source + offset, bh->b_size); in jbd2_freeze_jh_data()
982 frozen_buffer = jbd2_alloc(jh2bh(jh)->b_size, in do_get_write_access()
1010 jbd2_free(frozen_buffer, bh->b_size); in do_get_write_access()
1245 committed_data = jbd2_alloc(jh2bh(jh)->b_size, in jbd2_journal_get_undo_access()
1260 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access()
1266 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access()
1300 triggers->t_frozen(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_frozen_trigger()
2355 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidatepage()
/linux-4.19.296/fs/qnx4/
Dnamei.c82 if (offset < bh->b_size) { in qnx4_find_entry()
/linux-4.19.296/fs/omfs/
Dfile.c229 int max_blocks = bh_result->b_size >> inode->i_blkbits; in omfs_get_block()
259 bh_result->b_size = (remain << inode->i_blkbits); in omfs_get_block()

1234