/linux-4.19.296/fs/fat/ |
D | fatent.c | 44 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 …]
|
D | dir.c | 1085 struct buffer_head **bhs, int nr_bhs) in fat_zeroed_cluster() argument 1095 bhs[n] = sb_getblk(sb, blknr); in fat_zeroed_cluster() 1096 if (!bhs[n]) { in fat_zeroed_cluster() 1101 lock_buffer(bhs[n]); in fat_zeroed_cluster() 1102 memset(bhs[n]->b_data, 0, sb->s_blocksize); in fat_zeroed_cluster() 1103 set_buffer_uptodate(bhs[n]); in fat_zeroed_cluster() 1104 unlock_buffer(bhs[n]); in fat_zeroed_cluster() 1105 mark_buffer_dirty_inode(bhs[n], dir); in fat_zeroed_cluster() 1111 err = fat_sync_bhs(bhs, n); in fat_zeroed_cluster() 1116 brelse(bhs[i]); in fat_zeroed_cluster() [all …]
|
D | fat.h | 321 struct buffer_head *bhs[2]; member 330 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_init() 345 brelse(fatent->bhs[i]); in fatent_brelse() 347 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_brelse() 419 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
|
D | misc.c | 266 int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs) in fat_sync_bhs() argument 271 write_dirty_buffer(bhs[i], 0); in fat_sync_bhs() 274 wait_on_buffer(bhs[i]); in fat_sync_bhs() 275 if (!err && !buffer_uptodate(bhs[i])) in fat_sync_bhs()
|
/linux-4.19.296/fs/ocfs2/ |
D | buffer_head_io.c | 106 unsigned int nr, struct buffer_head *bhs[]) in ocfs2_read_blocks_sync() argument 121 new_bh = (bhs[0] == NULL); in ocfs2_read_blocks_sync() 124 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync() 125 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync() 126 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync() 132 bh = bhs[i]; in ocfs2_read_blocks_sync() 171 bh = bhs[i - 1]; in ocfs2_read_blocks_sync() 182 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync() 210 struct buffer_head *bhs[], int flags, in ocfs2_read_blocks() argument 226 if (bhs == NULL) { in ocfs2_read_blocks() [all …]
|
D | blockcheck.c | 483 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_compute_bhs() argument 497 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs() 503 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, 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() 527 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_validate_bhs() argument 550 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs() 566 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, 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() [all …]
|
D | blockcheck.h | 48 struct buffer_head **bhs, int nr, 51 struct buffer_head **bhs, int nr, 60 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, 62 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
|
D | buffer_head_io.h | 35 unsigned int nr, struct buffer_head *bhs[]); 45 struct buffer_head *bhs[], int flags,
|
D | extent_map.h | 67 struct buffer_head *bhs[], int flags,
|
D | namei.c | 1702 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local 1724 bhs = kcalloc(blocks, sizeof(struct buffer_head *), GFP_KERNEL); in ocfs2_create_symlink_data() 1725 if (!bhs) { in ocfs2_create_symlink_data() 1751 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data() 1752 if (!bhs[virtual]) { in ocfs2_create_symlink_data() 1758 bhs[virtual]); in ocfs2_create_symlink_data() 1761 bhs[virtual], in ocfs2_create_symlink_data() 1768 memset(bhs[virtual]->b_data, 0, sb->s_blocksize); in ocfs2_create_symlink_data() 1770 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data() 1774 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data() [all …]
|
D | extent_map.c | 975 struct buffer_head *bhs[], int flags, in ocfs2_read_virt_blocks() argument 984 inode, (unsigned long long)v_block, nr, bhs, flags, in ocfs2_read_virt_blocks() 1023 if (!bhs[done + i]) in ocfs2_read_virt_blocks() 1025 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i)); in ocfs2_read_virt_blocks() 1029 bhs + done, flags, validate); in ocfs2_read_virt_blocks()
|
D | ocfs2_trace.h | 1598 void *bhs, unsigned int flags, void *validate), 1599 TP_ARGS(inode, vblock, nr, bhs, flags, validate), 1604 __field(void *, bhs) 1612 __entry->bhs = bhs; 1617 __entry->nr, __entry->bhs, __entry->flags, __entry->validate)
|
D | alloc.c | 1005 struct buffer_head *bhs[]) in ocfs2_create_new_meta_bhs() argument 1030 bhs[i] = sb_getblk(osb->sb, first_blkno); in ocfs2_create_new_meta_bhs() 1031 if (bhs[i] == NULL) { in ocfs2_create_new_meta_bhs() 1036 ocfs2_set_new_buffer_uptodate(et->et_ci, bhs[i]); in ocfs2_create_new_meta_bhs() 1039 bhs[i], in ocfs2_create_new_meta_bhs() 1046 memset(bhs[i]->b_data, 0, osb->sb->s_blocksize); in ocfs2_create_new_meta_bhs() 1047 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs() 1064 ocfs2_journal_dirty(handle, bhs[i]); in ocfs2_create_new_meta_bhs() 1074 brelse(bhs[i]); in ocfs2_create_new_meta_bhs() 1075 bhs[i] = NULL; in ocfs2_create_new_meta_bhs()
|
/linux-4.19.296/fs/isofs/ |
D | compress.c | 63 struct buffer_head **bhs; in zisofs_uncompress_block() local 84 bhs = kcalloc(needblocks + 1, sizeof(*bhs), GFP_KERNEL); in zisofs_uncompress_block() 85 if (!bhs) { in zisofs_uncompress_block() 89 haveblocks = isofs_get_blocks(inode, blocknum, bhs, needblocks); in zisofs_uncompress_block() 90 ll_rw_block(REQ_OP_READ, 0, haveblocks, bhs); in zisofs_uncompress_block() 101 if (!bhs[0]) in zisofs_uncompress_block() 104 wait_on_buffer(bhs[0]); in zisofs_uncompress_block() 105 if (!buffer_uptodate(bhs[0])) { in zisofs_uncompress_block() 138 wait_on_buffer(bhs[curbh]); in zisofs_uncompress_block() 139 if (!buffer_uptodate(bhs[curbh])) { in zisofs_uncompress_block() [all …]
|
/linux-4.19.296/fs/ntfs/ |
D | compress.c | 488 struct buffer_head **bhs; in ntfs_read_compressed_block() local 534 bhs = kmalloc(bhs_size, GFP_NOFS); in ntfs_read_compressed_block() 536 if (unlikely(!pages || !bhs || !completed_pages)) { in ntfs_read_compressed_block() 537 kfree(bhs); in ntfs_read_compressed_block() 564 kfree(bhs); in ntfs_read_compressed_block() 653 if (unlikely(!(bhs[nr_bhs] = sb_getblk(sb, block)))) in ntfs_read_compressed_block() 665 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block() 680 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block() 721 memcpy(cb_pos, bhs[i]->b_data, block_size); in ntfs_read_compressed_block() 889 brelse(bhs[i]); in ntfs_read_compressed_block() [all …]
|
D | aops.c | 927 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; in ntfs_write_mst_block() local 1094 while (bhs[--nr_bhs] != rec_start_bh) in ntfs_write_mst_block() 1111 bhs[nr_bhs++] = bh; in ntfs_write_mst_block() 1129 tbh = bhs[i]; in ntfs_write_mst_block() 1153 bhs[i] = NULL; in ntfs_write_mst_block() 1181 clear_buffer_dirty(bhs[i]); in ntfs_write_mst_block() 1182 bhs[i] = NULL; in ntfs_write_mst_block() 1194 tbh = bhs[i]; in ntfs_write_mst_block() 1213 tbh = bhs[i]; in ntfs_write_mst_block() 1246 tbh = bhs[i]; in ntfs_write_mst_block() [all …]
|
D | mft.c | 474 struct buffer_head *bhs[MAX_BHS]; in ntfs_sync_mft_mirror() local 584 bhs[nr_bhs++] = bh; in ntfs_sync_mft_mirror() 592 struct buffer_head *tbh = bhs[i_bhs]; in ntfs_sync_mft_mirror() 604 struct buffer_head *tbh = bhs[i_bhs]; in ntfs_sync_mft_mirror() 619 clear_buffer_dirty(bhs[i_bhs]); in ntfs_sync_mft_mirror() 681 struct buffer_head *bhs[MAX_BHS]; in write_mft_record_nolock() local 771 bhs[nr_bhs++] = bh; in write_mft_record_nolock() 789 struct buffer_head *tbh = bhs[i_bhs]; in write_mft_record_nolock() 804 struct buffer_head *tbh = bhs[i_bhs]; in write_mft_record_nolock() 837 clear_buffer_dirty(bhs[i_bhs]); in write_mft_record_nolock()
|
/linux-4.19.296/fs/gfs2/ |
D | meta_io.c | 215 static void gfs2_submit_bhs(int op, int op_flags, struct buffer_head *bhs[], in gfs2_submit_bhs() argument 219 struct buffer_head *bh = *bhs; in gfs2_submit_bhs() 226 bh = *bhs; in gfs2_submit_bhs() 231 bhs++; in gfs2_submit_bhs() 254 struct buffer_head *bh, *bhs[2]; in gfs2_meta_read() local 271 bhs[num++] = bh; in gfs2_meta_read() 283 bhs[num++] = bh; in gfs2_meta_read() 287 gfs2_submit_bhs(REQ_OP_READ, REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
|
/linux-4.19.296/fs/ |
D | buffer.c | 1202 struct buffer_head *bhs[BH_LRU_SIZE]; member 1238 swap(evictee, b->bhs[i]); in bh_lru_install() 1262 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); in lookup_bh_lru() 1268 __this_cpu_write(bh_lrus.bhs[i], in lookup_bh_lru() 1269 __this_cpu_read(bh_lrus.bhs[i - 1])); in lookup_bh_lru() 1272 __this_cpu_write(bh_lrus.bhs[0], bh); in lookup_bh_lru() 1385 brelse(b->bhs[i]); in invalidate_bh_lru() 1386 b->bhs[i] = NULL; in invalidate_bh_lru() 1397 if (b->bhs[i]) in has_bh_in_lru() 3126 void ll_rw_block(int op, int op_flags, int nr, struct buffer_head *bhs[]) in ll_rw_block() argument [all …]
|
/linux-4.19.296/fs/ext4/ |
D | xattr.c | 350 struct buffer_head **bhs = bhs_inline; in ext4_xattr_inode_read() local 354 bhs = kmalloc_array(bh_count, sizeof(*bhs), GFP_NOFS); in ext4_xattr_inode_read() 355 if (!bhs) in ext4_xattr_inode_read() 360 true /* wait */, bhs); in ext4_xattr_inode_read() 366 if (!bhs[i]) { in ext4_xattr_inode_read() 370 memcpy((char *)buf + blocksize * i, bhs[i]->b_data, in ext4_xattr_inode_read() 376 brelse(bhs[i]); in ext4_xattr_inode_read() 378 if (bhs != bhs_inline) in ext4_xattr_inode_read() 379 kfree(bhs); in ext4_xattr_inode_read()
|
D | inode.c | 1050 bool wait, struct buffer_head **bhs) in ext4_bread_batch() argument 1055 bhs[i] = ext4_getblk(NULL, inode, block + i, 0 /* map_flags */); in ext4_bread_batch() 1056 if (IS_ERR(bhs[i])) { in ext4_bread_batch() 1057 err = PTR_ERR(bhs[i]); in ext4_bread_batch() 1065 if (bhs[i] && !buffer_uptodate(bhs[i])) in ext4_bread_batch() 1067 &bhs[i]); in ext4_bread_batch() 1073 if (bhs[i]) in ext4_bread_batch() 1074 wait_on_buffer(bhs[i]); in ext4_bread_batch() 1077 if (bhs[i] && !buffer_uptodate(bhs[i])) { in ext4_bread_batch() 1086 brelse(bhs[i]); in ext4_bread_batch() [all …]
|
D | mballoc.c | 817 struct buffer_head *bhs; in ext4_mb_init_cache() local 845 bh = &bhs; in ext4_mb_init_cache() 961 if (bh != &bhs) in ext4_mb_init_cache()
|
D | ext4.h | 2515 bool wait, struct buffer_head **bhs);
|
/linux-4.19.296/fs/nilfs2/ |
D | recovery.c | 93 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument 105 (unsigned char *)bhs->b_data + offset, size); in nilfs_compute_checksum()
|