Home
last modified time | relevance | path

Searched refs:bhs (Results 1 – 25 of 39) sorted by relevance

12

/Linux-v5.4/fs/fat/
Dfatent.c44 struct buffer_head **bhs = fatent->bhs; in fat12_ent_set_ptr() local
46 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
47 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr()
48 fatent->u.ent12_p[1] = bhs[0]->b_data + (offset + 1); in fat12_ent_set_ptr()
50 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
51 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr()
52 fatent->u.ent12_p[1] = bhs[1]->b_data; in fat12_ent_set_ptr()
59 fatent->u.ent16_p = (__le16 *)(fatent->bhs[0]->b_data + offset); in fat16_ent_set_ptr()
65 fatent->u.ent32_p = (__le32 *)(fatent->bhs[0]->b_data + offset); in fat32_ent_set_ptr()
71 struct buffer_head **bhs = fatent->bhs; in fat12_ent_bread() local
[all …]
Ddir.c1086 struct buffer_head **bhs, int nr_bhs) in fat_zeroed_cluster() argument
1096 bhs[n] = sb_getblk(sb, blknr); in fat_zeroed_cluster()
1097 if (!bhs[n]) { in fat_zeroed_cluster()
1102 lock_buffer(bhs[n]); in fat_zeroed_cluster()
1103 memset(bhs[n]->b_data, 0, sb->s_blocksize); in fat_zeroed_cluster()
1104 set_buffer_uptodate(bhs[n]); in fat_zeroed_cluster()
1105 unlock_buffer(bhs[n]); in fat_zeroed_cluster()
1106 mark_buffer_dirty_inode(bhs[n], dir); in fat_zeroed_cluster()
1112 err = fat_sync_bhs(bhs, n); in fat_zeroed_cluster()
1117 brelse(bhs[i]); in fat_zeroed_cluster()
[all …]
Dfat.h349 struct buffer_head *bhs[2]; member
358 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_init()
373 brelse(fatent->bhs[i]); in fatent_brelse()
375 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_brelse()
451 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
Dmisc.c344 int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs) in fat_sync_bhs() argument
349 write_dirty_buffer(bhs[i], 0); in fat_sync_bhs()
352 wait_on_buffer(bhs[i]); in fat_sync_bhs()
353 if (!err && !buffer_uptodate(bhs[i])) in fat_sync_bhs()
/Linux-v5.4/fs/ocfs2/
Dbuffer_head_io.c92 unsigned int nr, struct buffer_head *bhs[]) in ocfs2_read_blocks_sync() argument
107 new_bh = (bhs[0] == NULL); in ocfs2_read_blocks_sync()
110 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
111 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync()
112 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
118 bh = bhs[i]; in ocfs2_read_blocks_sync()
157 bh = bhs[i - 1]; in ocfs2_read_blocks_sync()
168 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync()
196 struct buffer_head *bhs[], int flags, in ocfs2_read_blocks() argument
212 if (bhs == NULL) { in ocfs2_read_blocks()
[all …]
Dblockcheck.c443 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_compute_bhs() argument
457 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs()
463 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_compute_bhs()
464 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs()
465 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs()
487 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_validate_bhs() argument
510 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
526 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_validate_bhs()
527 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
528 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs()
[all …]
Dblockcheck.h37 struct buffer_head **bhs, int nr,
40 struct buffer_head **bhs, int nr,
49 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
51 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
Dbuffer_head_io.h21 unsigned int nr, struct buffer_head *bhs[]);
31 struct buffer_head *bhs[], int flags,
Dnamei.c1688 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local
1710 bhs = kcalloc(blocks, sizeof(struct buffer_head *), GFP_KERNEL); in ocfs2_create_symlink_data()
1711 if (!bhs) { in ocfs2_create_symlink_data()
1737 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data()
1738 if (!bhs[virtual]) { in ocfs2_create_symlink_data()
1744 bhs[virtual]); in ocfs2_create_symlink_data()
1747 bhs[virtual], in ocfs2_create_symlink_data()
1754 memset(bhs[virtual]->b_data, 0, sb->s_blocksize); in ocfs2_create_symlink_data()
1756 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data()
1760 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
[all …]
Dextent_map.h54 struct buffer_head *bhs[], int flags,
Dextent_map.c961 struct buffer_head *bhs[], int flags, in ocfs2_read_virt_blocks() argument
970 inode, (unsigned long long)v_block, nr, bhs, flags, in ocfs2_read_virt_blocks()
1009 if (!bhs[done + i]) in ocfs2_read_virt_blocks()
1011 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i)); in ocfs2_read_virt_blocks()
1015 bhs + done, flags, validate); in ocfs2_read_virt_blocks()
/Linux-v5.4/fs/isofs/
Dcompress.c58 struct buffer_head **bhs; in zisofs_uncompress_block() local
79 bhs = kcalloc(needblocks + 1, sizeof(*bhs), GFP_KERNEL); in zisofs_uncompress_block()
80 if (!bhs) { in zisofs_uncompress_block()
84 haveblocks = isofs_get_blocks(inode, blocknum, bhs, needblocks); in zisofs_uncompress_block()
85 ll_rw_block(REQ_OP_READ, 0, haveblocks, bhs); in zisofs_uncompress_block()
96 if (!bhs[0]) in zisofs_uncompress_block()
99 wait_on_buffer(bhs[0]); in zisofs_uncompress_block()
100 if (!buffer_uptodate(bhs[0])) { in zisofs_uncompress_block()
133 wait_on_buffer(bhs[curbh]); in zisofs_uncompress_block()
134 if (!buffer_uptodate(bhs[curbh])) { in zisofs_uncompress_block()
[all …]
/Linux-v5.4/fs/ntfs/
Dcompress.c474 struct buffer_head **bhs; in ntfs_read_compressed_block() local
520 bhs = kmalloc(bhs_size, GFP_NOFS); in ntfs_read_compressed_block()
522 if (unlikely(!pages || !bhs || !completed_pages)) { in ntfs_read_compressed_block()
523 kfree(bhs); in ntfs_read_compressed_block()
550 kfree(bhs); in ntfs_read_compressed_block()
639 if (unlikely(!(bhs[nr_bhs] = sb_getblk(sb, block)))) in ntfs_read_compressed_block()
651 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block()
666 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block()
707 memcpy(cb_pos, bhs[i]->b_data, block_size); in ntfs_read_compressed_block()
875 brelse(bhs[i]); in ntfs_read_compressed_block()
[all …]
Daops.c913 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; in ntfs_write_mst_block() local
1080 while (bhs[--nr_bhs] != rec_start_bh) in ntfs_write_mst_block()
1097 bhs[nr_bhs++] = bh; in ntfs_write_mst_block()
1115 tbh = bhs[i]; in ntfs_write_mst_block()
1139 bhs[i] = NULL; in ntfs_write_mst_block()
1167 clear_buffer_dirty(bhs[i]); in ntfs_write_mst_block()
1168 bhs[i] = NULL; in ntfs_write_mst_block()
1180 tbh = bhs[i]; in ntfs_write_mst_block()
1199 tbh = bhs[i]; in ntfs_write_mst_block()
1232 tbh = bhs[i]; in ntfs_write_mst_block()
[all …]
Dmft.c460 struct buffer_head *bhs[MAX_BHS]; in ntfs_sync_mft_mirror() local
570 bhs[nr_bhs++] = bh; in ntfs_sync_mft_mirror()
578 struct buffer_head *tbh = bhs[i_bhs]; in ntfs_sync_mft_mirror()
590 struct buffer_head *tbh = bhs[i_bhs]; in ntfs_sync_mft_mirror()
605 clear_buffer_dirty(bhs[i_bhs]); in ntfs_sync_mft_mirror()
667 struct buffer_head *bhs[MAX_BHS]; in write_mft_record_nolock() local
757 bhs[nr_bhs++] = bh; in write_mft_record_nolock()
775 struct buffer_head *tbh = bhs[i_bhs]; in write_mft_record_nolock()
790 struct buffer_head *tbh = bhs[i_bhs]; in write_mft_record_nolock()
823 clear_buffer_dirty(bhs[i_bhs]); in write_mft_record_nolock()
/Linux-v5.4/fs/gfs2/
Dmeta_io.c212 static void gfs2_submit_bhs(int op, int op_flags, struct buffer_head *bhs[], in gfs2_submit_bhs() argument
216 struct buffer_head *bh = *bhs; in gfs2_submit_bhs()
223 bh = *bhs; in gfs2_submit_bhs()
228 bhs++; in gfs2_submit_bhs()
251 struct buffer_head *bh, *bhs[2]; in gfs2_meta_read() local
268 bhs[num++] = bh; in gfs2_meta_read()
280 bhs[num++] = bh; in gfs2_meta_read()
284 gfs2_submit_bhs(REQ_OP_READ, REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
/Linux-v5.4/fs/
Dbuffer.c1203 struct buffer_head *bhs[BH_LRU_SIZE]; member
1239 swap(evictee, b->bhs[i]); in bh_lru_install()
1263 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); in lookup_bh_lru()
1269 __this_cpu_write(bh_lrus.bhs[i], in lookup_bh_lru()
1270 __this_cpu_read(bh_lrus.bhs[i - 1])); in lookup_bh_lru()
1273 __this_cpu_write(bh_lrus.bhs[0], bh); in lookup_bh_lru()
1375 brelse(b->bhs[i]); in invalidate_bh_lru()
1376 b->bhs[i] = NULL; in invalidate_bh_lru()
1387 if (b->bhs[i]) in has_bh_in_lru()
3131 void ll_rw_block(int op, int op_flags, int nr, struct buffer_head *bhs[]) in ll_rw_block() argument
[all …]
/Linux-v5.4/arch/arm/mm/
Dcache-v4wt.S87 bhs __flush_whole_cache
Dcache-v4wb.S115 bhs __flush_whole_cache @ flush whole D cache
Dcache-fa.S88 bhs __flush_whole_cache @ flush whole D cache
/Linux-v5.4/fs/ext4/
Dxattr.c346 struct buffer_head **bhs = bhs_inline; in ext4_xattr_inode_read() local
350 bhs = kmalloc_array(bh_count, sizeof(*bhs), GFP_NOFS); in ext4_xattr_inode_read()
351 if (!bhs) in ext4_xattr_inode_read()
356 true /* wait */, bhs); in ext4_xattr_inode_read()
362 if (!bhs[i]) { in ext4_xattr_inode_read()
366 memcpy((char *)buf + blocksize * i, bhs[i]->b_data, in ext4_xattr_inode_read()
372 brelse(bhs[i]); in ext4_xattr_inode_read()
374 if (bhs != bhs_inline) in ext4_xattr_inode_read()
375 kfree(bhs); in ext4_xattr_inode_read()
Dinode.c1039 bool wait, struct buffer_head **bhs) in ext4_bread_batch() argument
1044 bhs[i] = ext4_getblk(NULL, inode, block + i, 0 /* map_flags */); in ext4_bread_batch()
1045 if (IS_ERR(bhs[i])) { in ext4_bread_batch()
1046 err = PTR_ERR(bhs[i]); in ext4_bread_batch()
1054 if (bhs[i] && !ext4_buffer_uptodate(bhs[i])) in ext4_bread_batch()
1056 &bhs[i]); in ext4_bread_batch()
1062 if (bhs[i]) in ext4_bread_batch()
1063 wait_on_buffer(bhs[i]); in ext4_bread_batch()
1066 if (bhs[i] && !buffer_uptodate(bhs[i])) { in ext4_bread_batch()
1075 brelse(bhs[i]); in ext4_bread_batch()
[all …]
/Linux-v5.4/arch/arm/kvm/hyp/
Dhyp-entry.S207 bhs 1f
/Linux-v5.4/fs/nilfs2/
Drecovery.c93 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument
105 (unsigned char *)bhs->b_data + offset, size); in nilfs_compute_checksum()
/Linux-v5.4/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c1204 unsigned char *bhs; in do_rx_iscsi_hdr() local
1221 bhs = skb->data; in do_rx_iscsi_hdr()
1223 dlen = ntohl(*(unsigned int *)(bhs + 4)) & 0xFFFFFF; in do_rx_iscsi_hdr()
1244 csk, skb, *bhs, hlen, dlen, in do_rx_iscsi_hdr()
1245 ntohl(*((unsigned int *)(bhs + 16))), in do_rx_iscsi_hdr()
1246 ntohl(*((unsigned int *)(bhs + 24)))); in do_rx_iscsi_hdr()

12