Home
last modified time | relevance | path

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

/fs/fat/
Dfatent.c46 struct buffer_head **bhs = fatent->bhs; in fat12_ent_set_ptr() local
48 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
49 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr()
50 fatent->u.ent12_p[1] = bhs[0]->b_data + (offset + 1); in fat12_ent_set_ptr()
52 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr()
53 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr()
54 fatent->u.ent12_p[1] = bhs[1]->b_data; in fat12_ent_set_ptr()
61 fatent->u.ent16_p = (__le16 *)(fatent->bhs[0]->b_data + offset); in fat16_ent_set_ptr()
67 fatent->u.ent32_p = (__le32 *)(fatent->bhs[0]->b_data + offset); in fat32_ent_set_ptr()
73 struct buffer_head **bhs = fatent->bhs; in fat12_ent_bread() local
[all …]
Ddir.c1046 struct buffer_head **bhs, int nr_bhs) in fat_zeroed_cluster() argument
1056 bhs[n] = sb_getblk(sb, blknr); in fat_zeroed_cluster()
1057 if (!bhs[n]) { in fat_zeroed_cluster()
1061 memset(bhs[n]->b_data, 0, sb->s_blocksize); in fat_zeroed_cluster()
1062 set_buffer_uptodate(bhs[n]); in fat_zeroed_cluster()
1063 mark_buffer_dirty(bhs[n]); in fat_zeroed_cluster()
1069 err = fat_sync_bhs(bhs, n); in fat_zeroed_cluster()
1074 brelse(bhs[i]); in fat_zeroed_cluster()
1079 err = fat_sync_bhs(bhs, n); in fat_zeroed_cluster()
1084 brelse(bhs[i]); in fat_zeroed_cluster()
[all …]
Dmisc.c271 int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs) in fat_sync_bhs() argument
275 ll_rw_block(SWRITE, nr_bhs, bhs); in fat_sync_bhs()
277 wait_on_buffer(bhs[i]); in fat_sync_bhs()
278 if (buffer_eopnotsupp(bhs[i])) { in fat_sync_bhs()
279 clear_buffer_eopnotsupp(bhs[i]); in fat_sync_bhs()
281 } else if (!err && !buffer_uptodate(bhs[i])) in fat_sync_bhs()
Dfat.h259 struct buffer_head *bhs[2]; member
267 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_init()
281 brelse(fatent->bhs[i]); in fatent_brelse()
283 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_brelse()
327 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
/fs/ocfs2/
Dblockcheck.c324 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_compute_bhs() argument
338 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs()
344 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_compute_bhs()
345 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs()
346 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs()
368 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_validate_bhs() argument
387 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs()
402 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_validate_bhs()
403 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs()
404 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs()
[all …]
Dbuffer_head_io.c104 unsigned int nr, struct buffer_head *bhs[]) in ocfs2_read_blocks_sync() argument
116 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
117 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync()
118 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
124 bh = bhs[i]; in ocfs2_read_blocks_sync()
160 bh = bhs[i - 1]; in ocfs2_read_blocks_sync()
172 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync()
181 struct buffer_head *bhs[], int flags, in ocfs2_read_blocks() argument
196 if (bhs == NULL) { in ocfs2_read_blocks()
217 if (bhs[i] == NULL) { in ocfs2_read_blocks()
[all …]
Dblockcheck.h30 struct buffer_head **bhs, int nr,
33 struct buffer_head **bhs, int nr,
41 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
43 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.c1456 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local
1479 bhs = kcalloc(blocks, sizeof(struct buffer_head *), GFP_KERNEL); in ocfs2_create_symlink_data()
1480 if (!bhs) { in ocfs2_create_symlink_data()
1506 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data()
1507 if (!bhs[virtual]) { in ocfs2_create_symlink_data()
1512 ocfs2_set_new_buffer_uptodate(inode, bhs[virtual]); in ocfs2_create_symlink_data()
1514 status = ocfs2_journal_access(handle, inode, bhs[virtual], in ocfs2_create_symlink_data()
1521 memset(bhs[virtual]->b_data, 0, sb->s_blocksize); in ocfs2_create_symlink_data()
1523 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data()
1527 status = ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
[all …]
Dextent_map.c811 struct buffer_head *bhs[], int flags, in ocfs2_read_virt_blocks() argument
821 inode, (unsigned long long)v_block, nr, bhs, flags, in ocfs2_read_virt_blocks()
860 if (!bhs[done + i]) in ocfs2_read_virt_blocks()
862 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i)); in ocfs2_read_virt_blocks()
865 rc = ocfs2_read_blocks(inode, p_block, count, bhs + done, in ocfs2_read_virt_blocks()
Dextent_map.h61 struct buffer_head *bhs[], int flags,
Djournal.c1003 struct buffer_head *bhs[CONCURRENT_JOURNAL_FILL]; in ocfs2_force_read_journal() local
1007 memset(bhs, 0, sizeof(struct buffer_head *) * CONCURRENT_JOURNAL_FILL); in ocfs2_force_read_journal()
1025 p_blkno, p_blocks, bhs); in ocfs2_force_read_journal()
1032 brelse(bhs[i]); in ocfs2_force_read_journal()
1033 bhs[i] = NULL; in ocfs2_force_read_journal()
1041 brelse(bhs[i]); in ocfs2_force_read_journal()
Dalloc.c858 struct buffer_head *bhs[]) in ocfs2_create_new_meta_bhs() argument
883 bhs[i] = sb_getblk(osb->sb, first_blkno); in ocfs2_create_new_meta_bhs()
884 if (bhs[i] == NULL) { in ocfs2_create_new_meta_bhs()
889 ocfs2_set_new_buffer_uptodate(inode, bhs[i]); in ocfs2_create_new_meta_bhs()
891 status = ocfs2_journal_access_eb(handle, inode, bhs[i], in ocfs2_create_new_meta_bhs()
898 memset(bhs[i]->b_data, 0, osb->sb->s_blocksize); in ocfs2_create_new_meta_bhs()
899 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs()
914 status = ocfs2_journal_dirty(handle, bhs[i]); in ocfs2_create_new_meta_bhs()
928 brelse(bhs[i]); in ocfs2_create_new_meta_bhs()
929 bhs[i] = NULL; in ocfs2_create_new_meta_bhs()
/fs/ntfs/
Dcompress.c493 struct buffer_head **bhs; in ntfs_read_compressed_block() local
537 bhs = kmalloc(bhs_size, GFP_NOFS); in ntfs_read_compressed_block()
539 if (unlikely(!pages || !bhs)) { in ntfs_read_compressed_block()
540 kfree(bhs); in ntfs_read_compressed_block()
566 kfree(bhs); in ntfs_read_compressed_block()
654 if (unlikely(!(bhs[nr_bhs] = sb_getblk(sb, block)))) in ntfs_read_compressed_block()
666 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block()
681 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()
/fs/isofs/
Dcompress.c179 struct buffer_head *bhs[needblocks+1]; in zisofs_readpage() local
185 memset(bhs, 0, (needblocks+1)*sizeof(struct buffer_head *)); in zisofs_readpage()
186 haveblocks = isofs_get_blocks(inode, blockptr, bhs, needblocks); in zisofs_readpage()
187 ll_rw_block(READ, haveblocks, bhs); in zisofs_readpage()
189 bhptr = &bhs[0]; in zisofs_readpage()
299 if ( bhs[i] ) in zisofs_readpage()
300 brelse(bhs[i]); in zisofs_readpage()
/fs/jbd/
Dcheckpoint.c253 __flush_batch(journal_t *journal, struct buffer_head **bhs, int *batch_count) in __flush_batch() argument
257 ll_rw_block(SWRITE, *batch_count, bhs); in __flush_batch()
259 struct buffer_head *bh = bhs[i]; in __flush_batch()
278 struct buffer_head **bhs, int *batch_count) in __process_buffer() argument
324 bhs[*batch_count] = bh; in __process_buffer()
330 __flush_batch(journal, bhs, batch_count); in __process_buffer()
382 struct buffer_head *bhs[NR_BATCH]; in log_do_checkpoint() local
396 retry = __process_buffer(journal, jh, bhs,&batch_count); in log_do_checkpoint()
412 __flush_batch(journal, bhs, &batch_count); in log_do_checkpoint()
/fs/
Dbuffer.c1337 struct buffer_head *bhs[BH_LRU_SIZE]; member
1368 if (lru->bhs[0] != bh) { in bh_lru_install()
1369 struct buffer_head *bhs[BH_LRU_SIZE]; in bh_lru_install() local
1374 bhs[out++] = bh; in bh_lru_install()
1376 struct buffer_head *bh2 = lru->bhs[in]; in bh_lru_install()
1385 bhs[out++] = bh2; in bh_lru_install()
1390 bhs[out++] = NULL; in bh_lru_install()
1391 memcpy(lru->bhs, bhs, sizeof(bhs)); in bh_lru_install()
1413 struct buffer_head *bh = lru->bhs[i]; in lookup_bh_lru()
1419 lru->bhs[i] = lru->bhs[i - 1]; in lookup_bh_lru()
[all …]
/fs/ext4/
Dmballoc.c751 struct buffer_head *bhs; in ext4_mb_init_cache() local
776 bh = &bhs; in ext4_mb_init_cache()
915 if (bh != &bhs) in ext4_mb_init_cache()