Home
last modified time | relevance | path

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

/linux-4.1.27/fs/fat/
Dfatent.c43 struct buffer_head **bhs = fatent->bhs; in fat12_ent_set_ptr() local
45 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
46 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr()
47 fatent->u.ent12_p[1] = bhs[0]->b_data + (offset + 1); in fat12_ent_set_ptr()
49 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
50 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr()
51 fatent->u.ent12_p[1] = bhs[1]->b_data; in fat12_ent_set_ptr()
58 fatent->u.ent16_p = (__le16 *)(fatent->bhs[0]->b_data + offset); in fat16_ent_set_ptr()
64 fatent->u.ent32_p = (__le32 *)(fatent->bhs[0]->b_data + offset); in fat32_ent_set_ptr()
70 struct buffer_head **bhs = fatent->bhs; in fat12_ent_bread() local
[all …]
Ddir.c1079 struct buffer_head **bhs, int nr_bhs) in fat_zeroed_cluster() argument
1089 bhs[n] = sb_getblk(sb, blknr); in fat_zeroed_cluster()
1090 if (!bhs[n]) { in fat_zeroed_cluster()
1094 memset(bhs[n]->b_data, 0, sb->s_blocksize); in fat_zeroed_cluster()
1095 set_buffer_uptodate(bhs[n]); in fat_zeroed_cluster()
1096 mark_buffer_dirty_inode(bhs[n], dir); in fat_zeroed_cluster()
1102 err = fat_sync_bhs(bhs, n); in fat_zeroed_cluster()
1107 brelse(bhs[i]); 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.h317 struct buffer_head *bhs[2]; member
326 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_init()
341 brelse(fatent->bhs[i]); in fatent_brelse()
343 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_brelse()
408 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
Dmisc.c265 int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs) in fat_sync_bhs() argument
270 write_dirty_buffer(bhs[i], WRITE); in fat_sync_bhs()
273 wait_on_buffer(bhs[i]); in fat_sync_bhs()
274 if (!err && !buffer_uptodate(bhs[i])) in fat_sync_bhs()
/linux-4.1.27/fs/ocfs2/
Dbuffer_head_io.c102 unsigned int nr, struct buffer_head *bhs[]) in ocfs2_read_blocks_sync() argument
114 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
115 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync()
116 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
122 bh = bhs[i]; in ocfs2_read_blocks_sync()
156 bh = bhs[i - 1]; in ocfs2_read_blocks_sync()
168 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync()
177 struct buffer_head *bhs[], int flags, in ocfs2_read_blocks() argument
192 if (bhs == NULL) { in ocfs2_read_blocks()
212 if (bhs[i] == NULL) { in ocfs2_read_blocks()
[all …]
Dblockcheck.c483 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 …]
Dblockcheck.h48 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,
Dbuffer_head_io.h38 unsigned int nr, struct buffer_head *bhs[]);
48 struct buffer_head *bhs[], int flags,
Dextent_map.h64 struct buffer_head *bhs[], int flags,
Dextent_map.c928 struct buffer_head *bhs[], int flags, in ocfs2_read_virt_blocks() argument
937 inode, (unsigned long long)v_block, nr, bhs, flags, in ocfs2_read_virt_blocks()
976 if (!bhs[done + i]) in ocfs2_read_virt_blocks()
978 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i)); in ocfs2_read_virt_blocks()
982 bhs + done, flags, validate); in ocfs2_read_virt_blocks()
Dnamei.c1653 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local
1675 bhs = kcalloc(blocks, sizeof(struct buffer_head *), GFP_KERNEL); in ocfs2_create_symlink_data()
1676 if (!bhs) { in ocfs2_create_symlink_data()
1702 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data()
1703 if (!bhs[virtual]) { in ocfs2_create_symlink_data()
1709 bhs[virtual]); in ocfs2_create_symlink_data()
1712 bhs[virtual], in ocfs2_create_symlink_data()
1719 memset(bhs[virtual]->b_data, 0, sb->s_blocksize); in ocfs2_create_symlink_data()
1721 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data()
1725 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
[all …]
Djournal.c1137 struct buffer_head *bhs[CONCURRENT_JOURNAL_FILL]; in ocfs2_force_read_journal() local
1139 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL); in ocfs2_force_read_journal()
1157 p_blkno, p_blocks, bhs); in ocfs2_force_read_journal()
1164 brelse(bhs[i]); in ocfs2_force_read_journal()
1165 bhs[i] = NULL; in ocfs2_force_read_journal()
1173 brelse(bhs[i]); in ocfs2_force_read_journal()
Docfs2_trace.h1603 void *bhs, unsigned int flags, void *validate),
1604 TP_ARGS(inode, vblock, nr, bhs, flags, validate),
1609 __field(void *, bhs)
1617 __entry->bhs = bhs;
1622 __entry->nr, __entry->bhs, __entry->flags, __entry->validate)
Dalloc.c1001 struct buffer_head *bhs[]) in ocfs2_create_new_meta_bhs() argument
1026 bhs[i] = sb_getblk(osb->sb, first_blkno); in ocfs2_create_new_meta_bhs()
1027 if (bhs[i] == NULL) { in ocfs2_create_new_meta_bhs()
1032 ocfs2_set_new_buffer_uptodate(et->et_ci, bhs[i]); in ocfs2_create_new_meta_bhs()
1035 bhs[i], in ocfs2_create_new_meta_bhs()
1042 memset(bhs[i]->b_data, 0, osb->sb->s_blocksize); in ocfs2_create_new_meta_bhs()
1043 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs()
1060 ocfs2_journal_dirty(handle, bhs[i]); in ocfs2_create_new_meta_bhs()
1070 brelse(bhs[i]); in ocfs2_create_new_meta_bhs()
1071 bhs[i] = NULL; in ocfs2_create_new_meta_bhs()
/linux-4.1.27/fs/isofs/
Dcompress.c61 struct buffer_head *bhs[needblocks + 1]; in zisofs_uncompress_block() local
82 memset(bhs, 0, (needblocks + 1) * sizeof(struct buffer_head *)); in zisofs_uncompress_block()
83 haveblocks = isofs_get_blocks(inode, blocknum, bhs, needblocks); in zisofs_uncompress_block()
84 ll_rw_block(READ, haveblocks, bhs); in zisofs_uncompress_block()
95 if (!bhs[0]) in zisofs_uncompress_block()
98 wait_on_buffer(bhs[0]); in zisofs_uncompress_block()
99 if (!buffer_uptodate(bhs[0])) { in zisofs_uncompress_block()
132 wait_on_buffer(bhs[curbh]); in zisofs_uncompress_block()
133 if (!buffer_uptodate(bhs[curbh])) { in zisofs_uncompress_block()
137 stream.next_in = bhs[curbh]->b_data + in zisofs_uncompress_block()
[all …]
/linux-4.1.27/fs/ntfs/
Dcompress.c494 struct buffer_head **bhs; in ntfs_read_compressed_block() local
538 bhs = kmalloc(bhs_size, GFP_NOFS); in ntfs_read_compressed_block()
540 if (unlikely(!pages || !bhs)) { in ntfs_read_compressed_block()
541 kfree(bhs); in ntfs_read_compressed_block()
567 kfree(bhs); in ntfs_read_compressed_block()
655 if (unlikely(!(bhs[nr_bhs] = sb_getblk(sb, block)))) in ntfs_read_compressed_block()
667 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block()
682 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block()
723 memcpy(cb_pos, bhs[i]->b_data, block_size); in ntfs_read_compressed_block()
896 brelse(bhs[i]); in ntfs_read_compressed_block()
[all …]
Daops.c930 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 …]
Dmft.c471 struct buffer_head *bhs[max_bhs]; in ntfs_sync_mft_mirror() local
579 bhs[nr_bhs++] = bh; in ntfs_sync_mft_mirror()
587 struct buffer_head *tbh = bhs[i_bhs]; in ntfs_sync_mft_mirror()
599 struct buffer_head *tbh = bhs[i_bhs]; in ntfs_sync_mft_mirror()
614 clear_buffer_dirty(bhs[i_bhs]); in ntfs_sync_mft_mirror()
676 struct buffer_head *bhs[max_bhs]; in write_mft_record_nolock() local
762 bhs[nr_bhs++] = bh; in write_mft_record_nolock()
780 struct buffer_head *tbh = bhs[i_bhs]; in write_mft_record_nolock()
795 struct buffer_head *tbh = bhs[i_bhs]; in write_mft_record_nolock()
828 clear_buffer_dirty(bhs[i_bhs]); in write_mft_record_nolock()
/linux-4.1.27/fs/jbd/
Dcheckpoint.c258 __flush_batch(journal_t *journal, struct buffer_head **bhs, int *batch_count) in __flush_batch() argument
265 write_dirty_buffer(bhs[i], WRITE_SYNC); in __flush_batch()
269 struct buffer_head *bh = bhs[i]; in __flush_batch()
288 struct buffer_head **bhs, int *batch_count) in __process_buffer() argument
334 bhs[*batch_count] = bh; in __process_buffer()
340 __flush_batch(journal, bhs, batch_count); in __process_buffer()
393 struct buffer_head *bhs[NR_BATCH]; in log_do_checkpoint() local
407 retry = __process_buffer(journal, jh, bhs,&batch_count); in log_do_checkpoint()
423 __flush_batch(journal, bhs, &batch_count); in log_do_checkpoint()
/linux-4.1.27/fs/
Dbuffer.c1241 struct buffer_head *bhs[BH_LRU_SIZE]; member
1270 if (__this_cpu_read(bh_lrus.bhs[0]) != bh) { in bh_lru_install()
1271 struct buffer_head *bhs[BH_LRU_SIZE]; in bh_lru_install() local
1276 bhs[out++] = bh; in bh_lru_install()
1279 __this_cpu_read(bh_lrus.bhs[in]); in bh_lru_install()
1288 bhs[out++] = bh2; in bh_lru_install()
1293 bhs[out++] = NULL; in bh_lru_install()
1294 memcpy(this_cpu_ptr(&bh_lrus.bhs), bhs, sizeof(bhs)); in bh_lru_install()
1314 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); in lookup_bh_lru()
1320 __this_cpu_write(bh_lrus.bhs[i], in lookup_bh_lru()
[all …]
/linux-4.1.27/arch/arm/mm/
Dcache-v4wt.S90 bhs __flush_whole_cache
Dcache-v4wb.S117 bhs __flush_whole_cache @ flush whole D cache
Dcache-fa.S91 bhs __flush_whole_cache @ flush whole D cache
Dproc-arm922.S172 bhs __flush_whole_cache
Dproc-arm1020e.S185 bhs __flush_whole_cache
Dproc-arm1026.S170 bhs __flush_whole_cache
Dproc-arm1022.S175 bhs __flush_whole_cache
Dproc-arm946.S137 bhs __flush_whole_cache
Dproc-arm920.S170 bhs __flush_whole_cache
Dproc-arm1020.S186 bhs __flush_whole_cache
Dproc-xsc3.S196 bhs __flush_whole_cache
Dproc-xscale.S236 bhs __flush_whole_cache
/linux-4.1.27/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c1096 unsigned char *bhs; in do_rx_iscsi_hdr() local
1112 bhs = skb->data; in do_rx_iscsi_hdr()
1114 dlen = ntohl(*(unsigned int *)(bhs + 4)) & 0xFFFFFF; in do_rx_iscsi_hdr()
1135 csk, skb, *bhs, hlen, dlen, in do_rx_iscsi_hdr()
1136 ntohl(*((unsigned int *)(bhs + 16))), in do_rx_iscsi_hdr()
1137 ntohl(*((unsigned int *)(bhs + 24)))); in do_rx_iscsi_hdr()
/linux-4.1.27/fs/nilfs2/
Drecovery.c105 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument
117 (unsigned char *)bhs->b_data + offset, size); in nilfs_compute_checksum()
/linux-4.1.27/drivers/misc/
Dlkdtm.c198 static void jp_ll_rw_block(int rw, int nr, struct buffer_head *bhs[]) in jp_ll_rw_block() argument
/linux-4.1.27/fs/ext4/
Dmballoc.c828 struct buffer_head *bhs; in ext4_mb_init_cache() local
856 bh = &bhs; in ext4_mb_init_cache()
962 if (bh != &bhs) in ext4_mb_init_cache()
/linux-4.1.27/arch/arm/boot/compressed/
Dhead.S390 bhs wont_overwrite
/linux-4.1.27/arch/arm/crypto/
Daesbs-core.S_shipped1065 bhs 1f