Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/usb/mon/
Dmon_bin.c183 unsigned int b_size; /* Current size of the buffer - bytes */ member
247 if ((off += step_len) >= this->b_size) off = 0; in mon_copy_to_buff()
280 if ((off += step_len) >= this->b_size) off = 0; in copy_from_buf()
298 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc()
302 if ((rp->b_in += size) >= rp->b_size) in mon_buff_area_alloc()
303 rp->b_in -= rp->b_size; in mon_buff_area_alloc()
324 if (rp->b_cnt + size > rp->b_size) in mon_buff_area_alloc_contiguous()
326 if (rp->b_in + size > rp->b_size) { in mon_buff_area_alloc_contiguous()
332 fill_size = rp->b_size - rp->b_in; in mon_buff_area_alloc_contiguous()
333 if (rp->b_cnt + size + fill_size > rp->b_size) in mon_buff_area_alloc_contiguous()
[all …]
/linux-4.1.27/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.c74 if (dsize > (dibh->b_size - sizeof(struct gfs2_dinode))) in gfs2_unstuffer_page()
75 dsize = dibh->b_size - sizeof(struct gfs2_dinode); in gfs2_unstuffer_page()
277 const __be64 *endp = (const __be64 *)(bh->b_data + bh->b_size); in gfs2_metapath_ra()
479 dblks = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, in gfs2_bmap_alloc()
584 bh_map->b_size = dblks << inode->i_blkbits; in gfs2_bmap_alloc()
609 const size_t maxlen = bh_map->b_size >> inode->i_blkbits; in gfs2_block_map()
655 len = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, &eob); in gfs2_block_map()
656 bh_map->b_size = (len << inode->i_blkbits); in gfs2_block_map()
692 bh.b_size = 1 << (inode->i_blkbits + (create ? 0 : 5)); in gfs2_extent_map()
694 *extlen = bh.b_size >> inode->i_blkbits; in gfs2_extent_map()
[all …]
Dlops.c188 size -= bh->b_size; in gfs2_end_log_write_bh()
357 gfs2_log_write(sdp, bh->b_page, bh->b_size, bh_offset(bh)); in gfs2_log_write_bh()
473 bd2->bd_bh->b_size); in gfs2_before_commit()
560 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in buf_lo_scan_elements()
798 memcpy(bh_ip->b_data, bh_log->b_data, bh_log->b_size); in databuf_lo_scan_elements()
Dfile.c362 bh.b_size = size; in gfs2_allocate_page_backing()
366 size -= bh.b_size; in gfs2_allocate_page_backing()
367 lblock += (bh.b_size >> inode->i_blkbits); in gfs2_allocate_page_backing()
747 bh_map.b_size = len; in fallocate_chunk()
753 len -= bh_map.b_size; in fallocate_chunk()
754 nr_blks = bh_map.b_size >> inode->i_blkbits; in fallocate_chunk()
Daops.c45 unsigned int bsize = head->b_size; in gfs2_page_add_databufs()
471 if (dsize > (dibh->b_size - sizeof(struct gfs2_dinode))) in stuffed_readpage()
472 dsize = (dibh->b_size - sizeof(struct gfs2_dinode)); in stuffed_readpage()
816 BUG_ON((pos + len) > (dibh->b_size - sizeof(struct gfs2_dinode))); in gfs2_stuffed_write_end()
1003 if (pos + bh->b_size > stop) in gfs2_invalidatepage()
1008 pos += bh->b_size; in gfs2_invalidatepage()
Ddir.c613 char *bh_end = bh->b_data + bh->b_size; in dirent_next()
673 if ((char *)cur + cur_rec_len > bh->b_data + bh->b_size) in dirent_del()
709 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_alloc()
789 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search()
809 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search()
852 gfs2_qstr2dirent(&name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf()
900 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash()
903 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash()
1349 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf()
1507 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
Drecovery.c394 bh_map.b_size = 1 << ip->i_inode.i_blkbits; in clean_journal()
405 memset(bh->b_data, 0, bh->b_size); in clean_journal()
Dtrace_gfs2.h338 __entry->len = bd->bd_bh->b_size;
457 __entry->len = bh->b_size;
Dxattr.c92 bh->b_data + bh->b_size)) in ea_foreach_i()
103 bh->b_data + bh->b_size) in ea_foreach_i()
Dquota.c387 bh_map.b_size = 1 << ip->i_inode.i_blkbits; in bh_get()
743 zero_user(page, pos - blocksize, bh->b_size); in gfs2_adjust_quota()
Drgrp.c375 end = start + bi->bi_bh->b_size; in gfs2_free_extlen()
2180 bi->bi_clone = kmalloc(bi->bi_bh->b_size, in rgblk_free()
Dinode.c423 …gfs2_qstr2dirent(&gfs2_qdotdot, dibh->b_size - GFS2_DIRENT_SIZE(1) - sizeof(struct gfs2_dinode), d… in gfs2_init_dir()
/linux-4.1.27/fs/
Ddax.c70 return bdev_direct_access(bh->b_bdev, sector, addr, &pfn, bh->b_size); in dax_get_addr()
124 bh->b_size = PAGE_ALIGN(end - pos); in dax_io()
131 bh->b_size = 1 << blkbits; in dax_io()
132 bh_max = pos - first + bh->b_size; in dax_io()
134 unsigned done = bh->b_size - in dax_io()
137 bh->b_size -= done; in dax_io()
143 size = bh->b_size - first; in dax_io()
296 error = bdev_direct_access(bh->b_bdev, sector, &addr, &pfn, bh->b_size); in dax_insert_mapping()
336 bh.b_size = PAGE_SIZE; in do_dax_fault()
362 if (!error && (bh.b_size < PAGE_SIZE)) in do_dax_fault()
[all …]
Dmpage.c173 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
200 map_bh->b_size = 0; in do_mpage_readpage()
203 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
235 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
293 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
366 map_bh.b_size = 0; in mpage_readpages()
400 map_bh.b_size = 0; in mpage_readpage()
546 map_bh.b_size = 1 << blkbits; in __mpage_writepage()
Dbuffer.c243 bh->b_state, bh->b_size); in __find_get_block_slow()
873 bh->b_size = size; in alloc_page_buffers()
1003 if (bh->b_size == size) { in grow_dev_page()
1317 bh->b_size == size) { in lookup_bh_lru()
1528 unsigned int next_off = curr_off + bh->b_size; in block_invalidatepage()
1704 blocksize = bh->b_size; in __block_write_full_page()
1728 WARN_ON(bh->b_size != blocksize); in __block_write_full_page()
1857 block_end = block_start + bh->b_size; in page_zero_new_buffers()
1900 blocksize = head->b_size; in __block_write_begin()
1918 WARN_ON(bh->b_size != blocksize); in __block_write_begin()
[all …]
Dioctl.c292 map_bh.b_size = len; in __generic_block_fiemap()
368 size = map_bh.b_size; in __generic_block_fiemap()
Ddirect-io.c611 map_bh->b_size = fs_count << i_blkbits; in get_more_blocks()
833 nblocks = map_bh->b_size >> dio->inode->i_blkbits; in clean_blockdev_aliases()
941 map_bh->b_size >> sdio->blkbits; in do_direct_IO()
/linux-4.1.27/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.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()
520 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
525 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
1289 alloc_copy = kmalloc(osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
1295 memcpy(alloc_copy, alloc, osb->local_alloc_bh->b_size); in ocfs2_local_alloc_slide_window()
Daops.c117 memcpy(kaddr + (bh_result->b_size * iblock), in ocfs2_symlink_get_block()
119 bh_result->b_size); in ocfs2_symlink_get_block()
142 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block()
192 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block()
435 unsigned blocksize = head->b_size; in walk_page_buffers()
524 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_direct_IO_get_blocks()
525 unsigned long len = bh_result->b_size; in ocfs2_direct_IO_get_blocks()
599 bh_result->b_size = contig_blocks << blocksize_bits; in ocfs2_direct_IO_get_blocks()
1145 zero_user(page, block_start, bh->b_size); in ocfs2_map_page_blocks()
1328 block_end = block_start + bh->b_size; in ocfs2_zero_new_buffers()
Dxattr.c1538 if (loc->xl_size == (bh->b_size - in ocfs2_xa_block_journal_access()
1667 if (loc->xl_size == (bh->b_size - in ocfs2_xa_block_fill_value_buf()
2271 (struct ocfs2_xattr_header *)(bh->b_data + bh->b_size - in ocfs2_init_dinode_xa_loc()
2290 loc->xl_size = bh->b_size - offsetof(struct ocfs2_xattr_block, in ocfs2_init_xattr_block_xa_loc()
2828 xs->end = (void *)(blk_bh->b_data) + blk_bh->b_size; in ocfs2_xattr_block_find()
Djournal.c666 (unsigned long long)bh->b_blocknr, type, bh->b_size); in __ocfs2_journal_access()
Ddir.c1345 leaf_bh, leaf_bh->b_data, leaf_bh->b_size); in ocfs2_delete_entry_dx()
1407 bh->b_size); in ocfs2_delete_entry_el()
Dsuper.c2362 bh->b_size, in ocfs2_verify_volume()
Dalloc.c6135 *tl_copy = kmalloc(tl_bh->b_size, GFP_KERNEL); in ocfs2_begin_truncate_log_recovery()
6144 memcpy(*tl_copy, tl_bh->b_data, tl_bh->b_size); in ocfs2_begin_truncate_log_recovery()
/linux-4.1.27/arch/tile/kernel/
Dmachine_kexec.c46 Elf32_Word b_size; member
122 bhdrp->b_size > PAGE_SIZE) in kexec_bn2cl()
129 csum = ip_compute_csum(pg, bhdrp->b_size); in kexec_bn2cl()
132 __func__, csum, bhdrp->b_size); in kexec_bn2cl()
147 ((unsigned char *) pg) + bhdrp->b_size) { in kexec_bn2cl()
/linux-4.1.27/crypto/
Dtcrypt.c287 unsigned int *b_size; in test_aead_speed() local
337 b_size = aead_sizes; in test_aead_speed()
343 if ((*keysize + *b_size) > TVMEMSIZE * PAGE_SIZE) { in test_aead_speed()
345 *keysize + *b_size, in test_aead_speed()
366 i, *keysize * 8, *b_size); in test_aead_speed()
378 *b_size + (enc ? authsize : 0)); in test_aead_speed()
381 *b_size + (enc ? authsize : 0)); in test_aead_speed()
383 aead_request_set_crypt(req, sg, sgout, *b_size, iv); in test_aead_speed()
387 ret = test_aead_jiffies(req, enc, *b_size, in test_aead_speed()
390 ret = test_aead_cycles(req, enc, *b_size); in test_aead_speed()
[all …]
/linux-4.1.27/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.c146 bdevname(bh->b_bdev, b), bh->b_size, in sprintf_buffer_head()
720 if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_leaf_block_head()
723 if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr) in check_leaf_block_head()
737 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head()
741 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head()
Dstree.c511 return is_leaf(bh->b_data, bh->b_size, bh); in is_tree_node()
513 return is_internal(bh->b_data, bh->b_size, bh); in is_tree_node()
1168 (PATH_PLAST_BUFFER(tb->tb_path)->b_size); in calc_deleted_bytes_number()
1529 cur_index += bh->b_size; in unmap_buffers()
2035 get_last_bh(path)->b_size) != in check_research_for_paste()
2038 get_last_bh(path)->b_size) != in check_research_for_paste()
2048 get_last_bh(path)->b_size) != in check_research_for_paste()
Dresize.c60 if (SB_BUFFER_WITH_SB(s)->b_blocknr * SB_BUFFER_WITH_SB(s)->b_size in reiserfs_resize()
Dfix_node.c84 if (op_is_left_mergeable(&ih->ih_key, Sh->b_size) in create_virtual_node()
154 if (op_is_left_mergeable(key, Sh->b_size) in create_virtual_node()
161 if (op_is_left_mergeable(key, Sh->b_size) && in create_virtual_node()
1291 && op_is_left_mergeable(&ih->ih_key, Sh->b_size)) ? IH_SIZE : 0) in can_node_be_removed()
1294 && op_is_left_mergeable(r_key, Sh->b_size)) ? IH_SIZE : 0) in can_node_be_removed()
2343 if (bh->b_size != sb->s_blocksize) in tb_buffer_sanity_check()
Ddir.c153 d_name + d_reclen > bh->b_data + bh->b_size) { in reiserfs_readdir_inode()
Dinode.c527 bh_result->b_size = (1 << inode->i_blkbits); in reiserfs_get_blocks_direct_io()
586 if ((tail_offset & (bh_result->b_size - 1)) != 1) in convert_tail_for_hole()
591 tail_end = (tail_start | (bh_result->b_size - 1)) + 1; in convert_tail_for_hole()
2465 if (bytes_copied < bh_result->b_size && in map_block_for_writepage()
3197 unsigned int next_off = curr_off + bh->b_size; in reiserfs_invalidatepage()
Ddo_balan.c513 !op_is_left_mergeable(leaf_key(tbS0, 0), tbS0->b_size) || in balance_leaf_paste_left_shift()
514 !op_is_left_mergeable(left_delim_key, tbS0->b_size), in balance_leaf_paste_left_shift()
550 op_is_left_mergeable(leaf_key(tbS0, 0), tbS0->b_size)) { in balance_leaf_paste_left_whole()
Djournal.c2267 real_blocks[i]->b_size); in journal_read_transaction()
4079 memset(d_bh->b_data, 0, d_bh->b_size); in do_journal_end()
4091 memset(c_bh->b_data, 0, c_bh->b_size); in do_journal_end()
4212 cn->bh->b_size); in do_journal_end()
Dbitmap.c1389 unsigned long *cur = (unsigned long *)(bh->b_data + bh->b_size); in reiserfs_cache_bitmap_metadata()
Dreiserfs.h2058 #define MAX_CHILD_SIZE(bh) ((int)( (bh)->b_size - BLKH_SIZE ))
2700 #define get_journal_desc_magic(bh) (bh->b_data + bh->b_size - 12)
/linux-4.1.27/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()
451 len = bio_add_page(wi->bio, bh->b_page, bh->b_size, bh_offset(bh)); in nilfs_segbuf_submit_bh()
452 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()
715 memset(bh->b_data, 0, bh->b_size); in nilfs_finish_roll_forward()
Dpage.c123 memcpy(kaddr1 + bh_offset(dbh), kaddr0 + bh_offset(sbh), sbh->b_size); in nilfs_copy_buffer()
220 create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_page()
433 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page()
453 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
Dinode.c90 unsigned maxblocks = bh_result->b_size >> inode->i_blkbits; in nilfs_get_block()
98 bh_result->b_size = (ret << inode->i_blkbits); in nilfs_get_block()
Dbtree.c409 bh->b_size, bh->b_blocknr); in nilfs_btree_broken_node_block()
/linux-4.1.27/fs/fat/
Dfatent.c45 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
49 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
201 (bhs[0]->b_size - 2))); in fat12_ent_next()
203 (bhs[0]->b_size - 1))); in fat12_ent_next()
204 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next()
211 (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()
Dinode.c166 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in fat_get_block()
172 bh_result->b_size = max_blocks << sb->s_blocksize_bits; in fat_get_block()
/linux-4.1.27/fs/hpfs/
Dfile.c84 if (bh_result->b_size >> 9 < n_secs) in hpfs_get_block()
85 n_secs = bh_result->b_size >> 9; in hpfs_get_block()
87 bh_result->b_size = n_secs << 9; in hpfs_get_block()
/linux-4.1.27/fs/xfs/
Dxfs_aops.c390 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in xfs_alloc_ioend_bio()
440 return bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh)); in xfs_bio_add_buffer()
512 if (xfs_bio_add_buffer(bio, bh) != bh->b_size) { in xfs_submit_ioend()
590 ioend->io_size += bh->b_size; in xfs_add_to_ioend()
1266 xfs_off_t size = bh_result->b_size; in xfs_map_direct()
1343 bh_result->b_size = mapping_size; in xfs_map_trim_size()
1369 ASSERT(bh_result->b_size >= (1 << inode->i_blkbits)); in __xfs_get_blocks()
1370 size = bh_result->b_size; in __xfs_get_blocks()
1698 block_offset += bh->b_size) { in xfs_vm_write_failed()
1699 block_end = block_start + bh->b_size; in xfs_vm_write_failed()
[all …]
Dxfs_file.c1127 lastoff += bh->b_size; in xfs_lookup_buffer_offset()
/linux-4.1.27/fs/jfs/
Dinode.c204 s32 xlen = bh_result->b_size >> ip->i_blkbits; in jfs_get_block()
243 bh_result->b_size = xlen << ip->i_blkbits; in jfs_get_block()
261 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
Dsuper.c764 tmp_bh.b_size = 1 << inode->i_blkbits; in jfs_quota_read()
804 tmp_bh.b_size = 1 << inode->i_blkbits; in jfs_quota_write()
/linux-4.1.27/fs/ext4/
Dpage-io.c104 bh_offset(bh) + bh->b_size > bio_end) { in ext4_finish_bio()
385 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio()
410 ret = bio_add_page(io->io_bio, page, bh->b_size, bh_offset(bh)); in io_submit_add_bh()
411 if (ret != bh->b_size) in io_submit_add_bh()
Dxattr.c228 error = ext4_xattr_check_names(BFIRST(bh), bh->b_data + bh->b_size, in ext4_xattr_check_block()
305 error = ext4_xattr_find_entry(&entry, name_index, name, bh->b_size, 1); in ext4_xattr_block_get()
760 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext4_xattr_block_find()
763 i->name, bs->bh->b_size, 1); in ext4_xattr_block_find()
832 s->base = kmalloc(bs->bh->b_size, GFP_NOFS); in ext4_xattr_block_set()
836 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext4_xattr_block_set()
840 s->end = s->base + bs->bh->b_size; in ext4_xattr_block_set()
939 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext4_xattr_block_set()
1322 end = bh->b_data + bh->b_size; in ext4_expand_extra_isize_ea()
Dfile.c204 err = ext4_convert_unwritten_extents(NULL, inode, offset, bh->b_size); in ext4_end_io_unwritten()
428 lastoff += bh->b_size; in ext4_find_unwritten_pgoff()
Dinode.c702 map.m_len = bh->b_size >> inode->i_blkbits; in _ext4_get_block()
736 bh->b_size = inode->i_sb->s_blocksize * map.m_len; in _ext4_get_block()
839 unsigned blocksize = head->b_size; in ext4_walk_page_buffers()
951 WARN_ON(bh->b_size != blocksize); in ext4_block_write_begin()
1380 unsigned int next_off = curr_off + bh->b_size; in ext4_da_page_release_reservation()
1664 BUG_ON(bh->b_size != inode->i_sb->s_blocksize); in ext4_da_get_block_prep()
3956 memset(bh->b_data, 0, bh->b_size); in __ext4_get_inode_loc()
Ddir.c230 bh->b_data, bh->b_size, in ext4_readdir()
Dnamei.c998 bh->b_data, bh->b_size, in htree_dirblock_to_tree()
1302 bh->b_size, offset)) { in search_dir()
2385 bh->b_data, bh->b_size, i)) in ext4_generic_delete_entry()
2806 bh->b_data, bh->b_size, offset)) { in ext4_empty_dir()
Dresize.c542 gdb->b_size); in setup_new_flex_group_blocks()
1492 gdb_bh->b_size, meta_bg); in ext4_flex_group_add()
Dindirect.c360 memset(bh->b_data, 0, bh->b_size); in ext4_alloc_branch()
/linux-4.1.27/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()
402 end = bh->b_data + bh->b_size; in ext2_xattr_set()
502 header = kmalloc(bh->b_size, GFP_KERNEL); in ext2_xattr_set()
506 memcpy(header, HDR(bh), bh->b_size); in ext2_xattr_set()
672 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
Dsuper.c1002 if (sb->s_blocksize != bh->b_size) { in ext2_fill_super()
1465 tmp_bh.b_size = sb->s_blocksize; in ext2_quota_read()
1504 tmp_bh.b_size = sb->s_blocksize; in ext2_quota_write()
Dinode.c767 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext2_get_block()
771 bh_result->b_size = (ret << inode->i_blkbits); in ext2_get_block()
/linux-4.1.27/fs/jbd2/
Dcommit.c310 (void *)(addr + offset_in_page(bh->b_data)), bh->b_size); in jbd2_checksum_data()
356 bh->b_size); in jbd2_block_tag_csum_set()
500 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
636 space_left = descriptor->b_size - in jbd2_journal_commit_transaction()
966 jbd2_free(jh->b_committed_data, bh->b_size); in jbd2_journal_commit_transaction()
974 jbd2_free(jh->b_frozen_data, bh->b_size); in jbd2_journal_commit_transaction()
Dtransaction.c925 jbd2_alloc(jh2bh(jh)->b_size, in do_get_write_access()
974 memcpy(jh->b_frozen_data, source+offset, jh2bh(jh)->b_size); in do_get_write_access()
993 jbd2_free(frozen_buffer, bh->b_size); in do_get_write_access()
1160 committed_data = jbd2_alloc(jh2bh(jh)->b_size, GFP_NOFS); in jbd2_journal_get_undo_access()
1181 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access()
1187 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access()
1221 triggers->t_frozen(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_frozen_trigger()
2197 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidatepage()
Djournal.c431 tmp = jbd2_alloc(bh_in->b_size, GFP_NOFS); in jbd2_journal_write_metadata_buffer()
438 jbd2_free(tmp, bh_in->b_size); in jbd2_journal_write_metadata_buffer()
444 memcpy(tmp, mapped_data + new_offset, bh_in->b_size); in jbd2_journal_write_metadata_buffer()
470 new_bh->b_size = bh_in->b_size; in jbd2_journal_write_metadata_buffer()
2535 jbd2_free(jh->b_frozen_data, bh->b_size); in __journal_remove_journal_head()
2539 jbd2_free(jh->b_committed_data, bh->b_size); in __journal_remove_journal_head()
Drecovery.c363 *crc32_sum = crc32_be(*crc32_sum, (void *)bh->b_data, bh->b_size); in calc_chksums()
375 obh->b_size); in calc_chksums()
Drevoke.c466 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in jbd2_journal_cancel_revoke()
/linux-4.1.27/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()
659 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext3_xattr_block_find()
662 i->name, bs->bh->b_size, 1); in ext3_xattr_block_find()
729 s->base = kmalloc(bs->bh->b_size, GFP_NOFS); in ext3_xattr_block_set()
733 memcpy(s->base, BHDR(bs->bh), bs->bh->b_size); in ext3_xattr_block_set()
737 s->end = s->base + bs->bh->b_size; in ext3_xattr_block_set()
827 memcpy(new_bh->b_data, s->base, new_bh->b_size); in ext3_xattr_block_set()
Dresize.c246 memcpy(gdb->b_data, sbi->s_group_desc[i]->b_data, gdb->b_size); in setup_new_group_blocks()
975 primary->b_size); in ext3_group_add()
Dinode.c1026 unsigned max_blocks = bh_result->b_size >> inode->i_blkbits; in ext3_get_block()
1043 bh_result->b_size = (ret << inode->i_blkbits); in ext3_get_block()
1159 unsigned blocksize = head->b_size; in walk_page_buffers()
2738 inodes_per_buffer = bh->b_size / in __ext3_get_inode_loc()
2773 memset(bh->b_data, 0, bh->b_size); in __ext3_get_inode_loc()
Dnamei.c1634 while (i < bh->b_size) { in ext3_delete_entry()
/linux-4.1.27/fs/jbd/
Dtransaction.c675 jbd_alloc(jh2bh(jh)->b_size, in do_get_write_access()
721 memcpy(jh->b_frozen_data, source+offset, jh2bh(jh)->b_size); in do_get_write_access()
734 jbd_free(frozen_buffer, bh->b_size); in do_get_write_access()
899 committed_data = jbd_alloc(jh2bh(jh)->b_size, GFP_NOFS); in journal_get_undo_access()
920 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in journal_get_undo_access()
926 jbd_free(committed_data, bh->b_size); in journal_get_undo_access()
2051 unsigned int next_off = curr_off + bh->b_size; in journal_invalidatepage()
Dcommit.c400 jbd_free(jh->b_committed_data, bh->b_size); in journal_commit_transaction()
582 space_left = bh->b_size - sizeof(journal_header_t); in journal_commit_transaction()
869 jbd_free(jh->b_committed_data, bh->b_size); in journal_commit_transaction()
876 jbd_free(jh->b_frozen_data, bh->b_size); in journal_commit_transaction()
Djournal.c367 tmp = jbd_alloc(bh_in->b_size, GFP_NOFS); in journal_write_metadata_buffer()
370 jbd_free(tmp, bh_in->b_size); in journal_write_metadata_buffer()
376 memcpy(tmp, mapped_data + new_offset, jh2bh(jh_in)->b_size); in journal_write_metadata_buffer()
396 new_bh->b_size = jh2bh(jh_in)->b_size; in journal_write_metadata_buffer()
2004 jbd_free(jh->b_frozen_data, bh->b_size); in __journal_remove_journal_head()
2008 jbd_free(jh->b_committed_data, bh->b_size); in __journal_remove_journal_head()
Drevoke.c469 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in journal_cancel_revoke()
/linux-4.1.27/fs/qnx4/
Dnamei.c81 if (offset < bh->b_size) { in qnx4_find_entry()
/linux-4.1.27/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()
Dinode.c154 memcpy(bh2->b_data, bh->b_data, bh->b_size); in __omfs_write_inode()
/linux-4.1.27/include/linux/
Dbuffer_head.h68 size_t b_size; /* size of mapping */ member
339 bh->b_size = sb->s_blocksize; in map_bh()
/linux-4.1.27/fs/minix/
Ditree_common.c26 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end()
88 memset(bh->b_data, 0, bh->b_size); in alloc_branch()
/linux-4.1.27/fs/bfs/
Dfile.c41 memcpy(new->b_data, bh->b_data, bh->b_size); in bfs_move_block()
Ddir.c356 if (offset < bh->b_size) in bfs_find_entry()
/linux-4.1.27/drivers/scsi/sym53c8xx_2/
Dsym_fw.h137 int b_size; /* Size of script B */ member
Dsym_hipd.c5589 np->scriptb_sz = fw->b_size;
/linux-4.1.27/fs/f2fs/
Ddata.c258 size_t max_size = bh_result->b_size; in f2fs_map_bh()
264 bh_result->b_size = min(max_size, mapped_size); in f2fs_map_bh()
1222 unsigned maxblocks = bh_result->b_size >> blkbits; in __get_data_block()
1267 bh_result->b_size = (((size_t)1) << blkbits); in __get_data_block()
1291 if (maxblocks > (bh_result->b_size >> blkbits)) { in __get_data_block()
1306 bh_result->b_size += (((size_t)1) << blkbits); in __get_data_block()
/linux-4.1.27/drivers/scsi/
Dosst.c4443 int i, b_size, new_session = 0, retval = 0; in __os_scsi_tape_open() local
4517 for (i = 0, b_size = 0; in __os_scsi_tape_open()
4518 (i < STp->buffer->sg_segs) && ((b_size + STp->buffer->sg[i].length) <= OS_DATA_SIZE); in __os_scsi_tape_open()
4519 b_size += STp->buffer->sg[i++].length); in __os_scsi_tape_open()
4520 …p->buffer->aux = (os_aux_t *) (page_address(sg_page(&STp->buffer->sg[i])) + OS_DATA_SIZE - b_size); in __os_scsi_tape_open()
5333 int segs, nbr, max_segs, b_size, order, got; in enlarge_buffer() local
5354 for (b_size = OS_DATA_SIZE, order = OSST_FIRST_ORDER; b_size >= PAGE_SIZE; order--, b_size /= 2) { in enlarge_buffer()
5359 sg_set_page(&STbuffer->sg[0], page, b_size, 0); in enlarge_buffer()
5369 for (segs=STbuffer->sg_segs=1, got=b_size; in enlarge_buffer()
5382 …uffer->sg[segs], page, (OS_FRAME_SIZE - got <= PAGE_SIZE / 2) ? (OS_FRAME_SIZE - got) : b_size, 0); in enlarge_buffer()
[all …]
Dst.c3749 int segs, max_segs, b_size, order, got; in enlarge_buffer() local
3769 b_size = PAGE_SIZE << order; in enlarge_buffer()
3771 for (b_size = PAGE_SIZE, order = 0; in enlarge_buffer()
3774 order++, b_size *= 2) in enlarge_buffer()
3797 got += b_size; in enlarge_buffer()
/linux-4.1.27/fs/sysv/
Ditree.c81 return (sysv_zone_t*)((char*)bh->b_data + bh->b_size); in block_end()
/linux-4.1.27/fs/ntfs/
Daops.c88 if (unlikely(file_ofs + bh->b_size > init_size)) { in ntfs_end_buffer_async_read()
98 bh->b_size - ofs); in ntfs_end_buffer_async_read()
/linux-4.1.27/include/trace/events/
Dblock.h29 __entry->size = bh->b_size;
Df2fs.h499 __entry->bh_size = bh->b_size;
/linux-4.1.27/fs/btrfs/
Dcheck-integrity.c2914 (rw & WRITE) && bh->b_size > 0) { in btrfsic_submit_bh()
2924 dev_bytenr, bh->b_size, bh->b_data, bh->b_bdev); in btrfsic_submit_bh()
Dinode.c7437 u64 len = bh_result->b_size; in btrfs_get_blocks_direct()
7558 len = bh_result->b_size; in btrfs_get_blocks_direct()
7569 bh_result->b_size = len; in btrfs_get_blocks_direct()
/linux-4.1.27/Documentation/virtual/uml/
DUserModeLinux-HOWTO.txt3664 $13 = {b_next = 0x50289380, b_blocknr = 49405, b_size = 1024, b_list = 0,