Home
last modified time | relevance | path

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

/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.h320 struct buffer_head *bhs[2]; member
329 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_init()
344 brelse(fatent->bhs[i]); in fatent_brelse()
346 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_brelse()
412 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], 0); 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()
/fs/ocfs2/
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 …]
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()
161 bh = bhs[i - 1]; in ocfs2_read_blocks_sync()
173 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync()
182 struct buffer_head *bhs[], int flags, in ocfs2_read_blocks() argument
197 if (bhs == NULL) { in ocfs2_read_blocks()
217 if (bhs[i] == NULL) { in ocfs2_read_blocks()
[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,
Dnamei.c1699 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local
1721 bhs = kcalloc(blocks, sizeof(struct buffer_head *), GFP_KERNEL); in ocfs2_create_symlink_data()
1722 if (!bhs) { in ocfs2_create_symlink_data()
1748 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data()
1749 if (!bhs[virtual]) { in ocfs2_create_symlink_data()
1755 bhs[virtual]); in ocfs2_create_symlink_data()
1758 bhs[virtual], in ocfs2_create_symlink_data()
1765 memset(bhs[virtual]->b_data, 0, sb->s_blocksize); in ocfs2_create_symlink_data()
1767 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data()
1771 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
[all …]
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()
Dextent_map.h64 struct buffer_head *bhs[], int flags,
Docfs2_trace.h1595 void *bhs, unsigned int flags, void *validate),
1596 TP_ARGS(inode, vblock, nr, bhs, flags, validate),
1601 __field(void *, bhs)
1609 __entry->bhs = bhs;
1614 __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()
/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(REQ_OP_READ, 0, 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 …]
/fs/ntfs/
Dcompress.c490 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)) { in ntfs_read_compressed_block()
537 kfree(bhs); in ntfs_read_compressed_block()
563 kfree(bhs); in ntfs_read_compressed_block()
651 if (unlikely(!(bhs[nr_bhs] = sb_getblk(sb, block)))) in ntfs_read_compressed_block()
663 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block()
678 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block()
719 memcpy(cb_pos, bhs[i]->b_data, block_size); in ntfs_read_compressed_block()
887 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()
/fs/gfs2/
Dmeta_io.c216 static void gfs2_submit_bhs(int op, int op_flags, struct buffer_head *bhs[], in gfs2_submit_bhs() argument
220 struct buffer_head *bh = *bhs; in gfs2_submit_bhs()
227 bh = *bhs; in gfs2_submit_bhs()
232 bhs++; in gfs2_submit_bhs()
255 struct buffer_head *bh, *bhs[2]; in gfs2_meta_read() local
272 bhs[num++] = bh; in gfs2_meta_read()
284 bhs[num++] = bh; in gfs2_meta_read()
288 gfs2_submit_bhs(REQ_OP_READ, READ_SYNC | REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
/fs/
Dbuffer.c1254 struct buffer_head *bhs[BH_LRU_SIZE]; member
1283 if (__this_cpu_read(bh_lrus.bhs[0]) != bh) { in bh_lru_install()
1284 struct buffer_head *bhs[BH_LRU_SIZE]; in bh_lru_install() local
1289 bhs[out++] = bh; in bh_lru_install()
1292 __this_cpu_read(bh_lrus.bhs[in]); in bh_lru_install()
1301 bhs[out++] = bh2; in bh_lru_install()
1306 bhs[out++] = NULL; in bh_lru_install()
1307 memcpy(this_cpu_ptr(&bh_lrus.bhs), bhs, sizeof(bhs)); in bh_lru_install()
1327 struct buffer_head *bh = __this_cpu_read(bh_lrus.bhs[i]); in lookup_bh_lru()
1333 __this_cpu_write(bh_lrus.bhs[i], in lookup_bh_lru()
[all …]
/fs/nilfs2/
Drecovery.c102 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument
114 (unsigned char *)bhs->b_data + offset, size); in nilfs_compute_checksum()
/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()