Home
last modified time | relevance | path

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

12

/linux/fs/ocfs2/
H A Dblockcheck.c455 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()
H A Daops.c95 bh_result->b_size * iblock, in ocfs2_symlink_get_block()
97 bh_result->b_size); in ocfs2_symlink_get_block()
132 u64 max_blocks = bh_result->b_size >> inode->i_blkbits; in ocfs2_get_block()
181 bh_result->b_size = count << inode->i_blkbits; in ocfs2_get_block()
404 unsigned blocksize = head->b_size; in walk_page_buffers()
652 folio_zero_range(folio, block_start, bh->b_size); in ocfs2_map_folio_blocks()
869 block_end = block_start + bh->b_size; in ocfs2_zero_new_buffers()
2129 unsigned len, total_len = bh_result->b_size; in ocfs2_dio_wr_get_block()
2229 bh_result->b_size = len; in ocfs2_dio_wr_get_block()
H A Dlocalalloc.c427 alloc_copy = kmemdup(alloc, bh->b_size, GFP_NOFS); in ocfs2_shutdown_local_alloc()
508 *alloc_copy = kmalloc(alloc_bh->b_size, GFP_KERNEL); in ocfs2_begin_local_alloc_recovery()
513 memcpy((*alloc_copy), alloc_bh->b_data, alloc_bh->b_size); in ocfs2_begin_local_alloc_recovery()
1269 alloc_copy = kmemdup(alloc, osb->local_alloc_bh->b_size, GFP_NOFS); in ocfs2_local_alloc_slide_window()
/linux/fs/
H A Dmpage.c191 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
218 map_bh->b_size = 0; in do_mpage_readpage()
221 map_bh->b_size = (last_block-block_in_file) << blkbits; in do_mpage_readpage()
255 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
301 nblocks = map_bh->b_size >> blkbits; in do_mpage_readpage()
544 map_bh.b_size = 1 << blkbits; in mpage_write_folio()
H A Dbuffer.c243 bh->b_state, bh->b_size, bdev, in __find_get_block_slow()
314 valid = fsverity_verify_blocks(bh->b_folio, bh->b_size, bh_offset(bh)); in verify_bh()
336 err = fscrypt_decrypt_pagecache_blocks(bh->b_folio, bh->b_size, in decrypt_bh()
943 bh->b_size = size; in folio_alloc_buffers()
1057 if (bh->b_size == size) { in grow_dev_folio()
1376 bh->b_size == size) { in lookup_bh_lru()
1650 size_t next_off = curr_off + bh->b_size; in block_invalidate_folio()
1861 blocksize = bh->b_size; in __block_write_full_folio()
1884 WARN_ON(bh->b_size != blocksize); in __block_write_full_folio()
2017 block_end = block_start + bh->b_size; in folio_zero_new_buffers()
[all …]
/linux/fs/fat/
H A Dfatent.c47 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()
/linux/crypto/
H A Dtcrypt.c251 const int *b_size; in test_mb_aead_speed() local
335 b_size = aead_sizes; in test_mb_aead_speed()
337 int bs = round_up(*b_size, crypto_aead_blocksize(tfm)); in test_mb_aead_speed()
427 b_size++; in test_mb_aead_speed()
429 } while (*b_size); in test_mb_aead_speed()
536 const int *b_size; in test_aead_speed() local
596 b_size = aead_sizes; in test_aead_speed()
598 u32 bs = round_up(*b_size, crypto_aead_blocksize(tfm)); in test_aead_speed()
679 b_size++; in test_aead_speed()
681 } while (*b_size); in test_aead_speed()
[all …]
/linux/fs/gfs2/
H A Dbmap.c282 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()
1222 loff_t length = bh_map->b_size; in gfs2_block_map()
1238 if (iomap.length > bh_map->b_size) { in gfs2_block_map()
1239 iomap.length = bh_map->b_size; in gfs2_block_map()
1244 bh_map->b_size = iomap.length; in gfs2_block_map()
1640 end = (__be64 *)(bh->b_data + bh->b_size); in find_nonnull_ptr()
1681 *end = (__be64 *)(bh->b_data + bh->b_size); in metapointer_range()
2268 bh.b_size = size; in gfs2_map_journal_extents()
2272 rc = gfs2_add_jextent(jd, lblock, bh.b_blocknr, bh.b_size >> shift); in gfs2_map_journal_extents()
[all …]
H A 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()
834 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dirent_search()
854 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, scan, name, NULL); in gfs2_dirent_search()
896 gfs2_qstr2dirent(&empty_name, bh->b_size - sizeof(struct gfs2_leaf), dent); in new_leaf()
943 args.len = bh->b_size - sizeof(struct gfs2_dinode) + in dir_make_exhash()
946 dent = gfs2_dirent_scan(&dip->i_inode, bh->b_data, bh->b_size, in dir_make_exhash()
1428 dent = gfs2_dirent_scan(inode, bh->b_data, bh->b_size, in gfs2_dir_read_leaf()
1600 dent = gfs2_dirent_scan(inode, dibh->b_data, dibh->b_size, in gfs2_dir_read()
/linux/fs/hpfs/
H A Dfile.c89 if (bh_result->b_size >> 9 < n_secs) in hpfs_get_block()
90 n_secs = bh_result->b_size >> 9; in hpfs_get_block()
97 bh_result->b_size = n_secs << 9; in hpfs_get_block()
/linux/fs/ext4/
H A Dpage-io.c130 bh_offset(bh) + bh->b_size > bio_end) { in ext4_finish_bio()
428 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio()
451 if (!bio_add_folio(io->io_bio, io_folio, bh->b_size, bh_offset(bh))) in io_submit_add_bh()
453 wbc_account_cgroup_owner(io->io_wbc, folio, bh->b_size); in io_submit_add_bh()
/linux/fs/nilfs2/
H A Drecovery.c268 BUG_ON((*pbh)->b_size < *offset); in nilfs_read_summary_info()
269 if (bytes > (*pbh)->b_size - *offset) { in nilfs_read_summary_info()
297 = ((*pbh)->b_size - *offset) / bytes; in nilfs_skip_summary_info()
303 unsigned int nitem_per_block = (*pbh)->b_size / bytes; in nilfs_skip_summary_info()
517 memcpy_to_folio(folio, from, bh_org->b_data, bh_org->b_size); in nilfs_recovery_copy_block()
741 memset(bh->b_data, 0, bh->b_size); in nilfs_finish_roll_forward()
H A Dpage.c109 memcpy(daddr, saddr, sbh->b_size); in nilfs_copy_buffer()
208 dbh = create_empty_buffers(dst, sbh->b_size, 0); in nilfs_copy_folio()
457 block_end = block_start + bh->b_size; in nilfs_page_count_clean_buffers()
/linux/fs/jfs/
H A Dinode.c213 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()
260 bh_result->b_size = lengthXAD(&xad) << ip->i_blkbits; in jfs_get_block()
/linux/include/linux/firmware/meson/
H A Dmeson_sm.h24 unsigned int b_size, unsigned int cmd_index, u32 arg0,
/linux/fs/ext2/
H A Dxattr.c226 end = bh->b_data + bh->b_size; in ext2_xattr_get()
312 end = bh->b_data + bh->b_size; in ext2_xattr_list()
453 end = bh->b_data + bh->b_size; in ext2_xattr_set()
539 header = kmemdup(HDR(bh), bh->b_size, GFP_KERNEL); in ext2_xattr_set()
761 memcpy(new_bh->b_data, header, new_bh->b_size); in ext2_xattr_set2()
/linux/fs/jbd2/
H A Dtransaction.c926 memcpy(jh->b_frozen_data, source, bh->b_size); in jbd2_freeze_jh_data()
1113 frozen_buffer = jbd2_alloc(jh2bh(jh)->b_size, in do_get_write_access()
1141 jbd2_free(frozen_buffer, bh->b_size); in do_get_write_access()
1401 committed_data = jbd2_alloc(jh2bh(jh)->b_size, in jbd2_journal_get_undo_access()
1416 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access()
1422 jbd2_free(committed_data, bh->b_size); in jbd2_journal_get_undo_access()
1456 triggers->t_frozen(triggers, bh, mapped_data, bh->b_size); in jbd2_buffer_frozen_trigger()
2453 unsigned int next_off = curr_off + bh->b_size; in jbd2_journal_invalidate_folio()
/linux/fs/qnx4/
H A Dnamei.c75 if (offset < bh->b_size) { in qnx4_find_entry()
/linux/fs/omfs/
H A 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()
/linux/fs/minix/
H A Ditree_common.c27 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end()
95 memset(bh->b_data, 0, bh->b_size); in alloc_branch()
/linux/fs/exfat/
H A Dinode.c270 unsigned long max_blocks = bh_result->b_size >> inode->i_blkbits; in exfat_get_block()
389 memset(bh_result->b_data + size, 0, bh_result->b_size - size); in exfat_get_block()
400 bh_result->b_size = EXFAT_BLK_TO_B(max_blocks, sb); in exfat_get_block()
/linux/include/linux/
H A Dbuffer_head.h69 size_t b_size; /* size of mapping */ member
413 bh->b_size = sb->s_blocksize; in map_bh()
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_fw.h124 int b_size; /* Size of script B */ member
/linux/fs/bfs/
H A Dfile.c43 memcpy(new->b_data, bh->b_data, bh->b_size); in bfs_move_block()
/linux/fs/adfs/
H A Ddir_fplus.c84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte()

12