Home
last modified time | relevance | path

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

/linux-4.4.14/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.c1085 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()
1100 memset(bhs[n]->b_data, 0, sb->s_blocksize); in fat_zeroed_cluster()
1101 set_buffer_uptodate(bhs[n]); in fat_zeroed_cluster()
1102 mark_buffer_dirty_inode(bhs[n], dir); in fat_zeroed_cluster()
1108 err = fat_sync_bhs(bhs, n); in fat_zeroed_cluster()
1113 brelse(bhs[i]); in fat_zeroed_cluster()
1118 err = fat_sync_bhs(bhs, n); in fat_zeroed_cluster()
1123 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.4.14/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.c930 struct buffer_head *bhs[], int flags, in ocfs2_read_virt_blocks() argument
939 inode, (unsigned long long)v_block, nr, bhs, flags, in ocfs2_read_virt_blocks()
978 if (!bhs[done + i]) in ocfs2_read_virt_blocks()
980 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i)); in ocfs2_read_virt_blocks()
984 bhs + done, flags, validate); in ocfs2_read_virt_blocks()
Dnamei.c1696 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local
1718 bhs = kcalloc(blocks, sizeof(struct buffer_head *), GFP_KERNEL); in ocfs2_create_symlink_data()
1719 if (!bhs) { in ocfs2_create_symlink_data()
1745 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data()
1746 if (!bhs[virtual]) { in ocfs2_create_symlink_data()
1752 bhs[virtual]); in ocfs2_create_symlink_data()
1755 bhs[virtual], in ocfs2_create_symlink_data()
1762 memset(bhs[virtual]->b_data, 0, sb->s_blocksize); in ocfs2_create_symlink_data()
1764 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data()
1768 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
[all …]
Djournal.c1164 struct buffer_head *bhs[CONCURRENT_JOURNAL_FILL]; in ocfs2_force_read_journal() local
1166 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL); in ocfs2_force_read_journal()
1184 p_blkno, p_blocks, bhs); in ocfs2_force_read_journal()
1191 brelse(bhs[i]); in ocfs2_force_read_journal()
1192 bhs[i] = NULL; in ocfs2_force_read_journal()
1200 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.c999 struct buffer_head *bhs[]) in ocfs2_create_new_meta_bhs() argument
1024 bhs[i] = sb_getblk(osb->sb, first_blkno); in ocfs2_create_new_meta_bhs()
1025 if (bhs[i] == NULL) { in ocfs2_create_new_meta_bhs()
1030 ocfs2_set_new_buffer_uptodate(et->et_ci, bhs[i]); in ocfs2_create_new_meta_bhs()
1033 bhs[i], in ocfs2_create_new_meta_bhs()
1040 memset(bhs[i]->b_data, 0, osb->sb->s_blocksize); in ocfs2_create_new_meta_bhs()
1041 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs()
1058 ocfs2_journal_dirty(handle, bhs[i]); in ocfs2_create_new_meta_bhs()
1068 brelse(bhs[i]); in ocfs2_create_new_meta_bhs()
1069 bhs[i] = NULL; in ocfs2_create_new_meta_bhs()
/linux-4.4.14/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.4.14/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.4.14/fs/
Dbuffer.c1265 struct buffer_head *bhs[BH_LRU_SIZE]; member
1294 if (__this_cpu_read(bh_lrus.bhs[0]) != bh) { in bh_lru_install()
1295 struct buffer_head *bhs[BH_LRU_SIZE]; in bh_lru_install() local
1300 bhs[out++] = bh; in bh_lru_install()
1303 __this_cpu_read(bh_lrus.bhs[in]); in bh_lru_install()
1312 bhs[out++] = bh2; in bh_lru_install()
1317 bhs[out++] = NULL; in bh_lru_install()
1318 memcpy(this_cpu_ptr(&bh_lrus.bhs), bhs, sizeof(bhs)); in bh_lru_install()
1338 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); in lookup_bh_lru()
1344 __this_cpu_write(bh_lrus.bhs[i], in lookup_bh_lru()
[all …]
/linux-4.4.14/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.4.14/drivers/scsi/cxgbi/cxgb4i/
Dcxgb4i.c1103 unsigned char *bhs; in do_rx_iscsi_hdr() local
1119 bhs = skb->data; in do_rx_iscsi_hdr()
1121 dlen = ntohl(*(unsigned int *)(bhs + 4)) & 0xFFFFFF; in do_rx_iscsi_hdr()
1142 csk, skb, *bhs, hlen, dlen, in do_rx_iscsi_hdr()
1143 ntohl(*((unsigned int *)(bhs + 16))), in do_rx_iscsi_hdr()
1144 ntohl(*((unsigned int *)(bhs + 24)))); in do_rx_iscsi_hdr()
/linux-4.4.14/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.4.14/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.4.14/fs/ext4/
Dmballoc.c829 struct buffer_head *bhs; in ext4_mb_init_cache() local
857 bh = &bhs; in ext4_mb_init_cache()
973 if (bh != &bhs) in ext4_mb_init_cache()
/linux-4.4.14/arch/arm/boot/compressed/
Dhead.S390 bhs wont_overwrite
/linux-4.4.14/arch/arm/crypto/
Daesbs-core.S_shipped1065 bhs 1f