| /fs/fat/ |
| A D | fatent.c | 45 struct buffer_head **bhs = fatent->bhs; in fat12_ent_set_ptr() local 72 struct buffer_head **bhs = fatent->bhs; in fat12_ent_bread() local 78 if (!bhs[0]) in fat12_ent_bread() 87 if (!bhs[1]) in fat12_ent_bread() 95 brelse(bhs[0]); in fat12_ent_bread() 198 struct buffer_head **bhs = fatent->bhs; in fat12_ent_next() local 207 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next() 219 bhs[0] = bhs[1]; in fat12_ent_next() 325 struct buffer_head **bhs = fatent->bhs; in fat_ent_update_ptr() local 455 if (fatent->bhs[n] == bhs[i]) in fat_collect_bhs() [all …]
|
| A D | dir.c | 1105 if (!bhs[n]) { in fat_zeroed_cluster() 1125 brelse(bhs[i]); in fat_zeroed_cluster() 1135 brelse(bhs[i]); in fat_zeroed_cluster() 1141 bforget(bhs[i]); in fat_zeroed_cluster() 1162 if (!bhs[0]) { in fat_alloc_new_dir() 1245 if (!bhs[n]) { in fat_add_new_entries() 1269 get_bh(bhs[n]); in fat_add_new_entries() 1270 *bh = bhs[n]; in fat_add_new_entries() 1287 bforget(bhs[i]); in fat_add_new_entries() 1375 brelse(bhs[i]); in fat_add_entries() [all …]
|
| A D | fat.h | 353 struct buffer_head *bhs[2]; member 362 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_init() 377 brelse(fatent->bhs[i]); in fatent_brelse() 379 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_brelse() 476 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
|
| A D | misc.c | 362 int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs) in fat_sync_bhs() argument 367 write_dirty_buffer(bhs[i], 0); in fat_sync_bhs() 370 wait_on_buffer(bhs[i]); in fat_sync_bhs() 371 if (!err && !buffer_uptodate(bhs[i])) in fat_sync_bhs()
|
| /fs/adfs/ |
| A D | dir.c | 71 if (dir->bhs != dir->bh) in __adfs_dir_cleanup() 72 kfree(dir->bhs); in __adfs_dir_cleanup() 73 dir->bhs = NULL; in __adfs_dir_cleanup() 82 brelse(dir->bhs[i]); in adfs_dir_relse() 92 bforget(dir->bhs[i]); in adfs_dir_forget() 110 bhs = kcalloc(num, sizeof(*bhs), GFP_KERNEL); in adfs_dir_read_buffers() 111 if (!bhs) in adfs_dir_read_buffers() 115 memcpy(bhs, dir->bhs, dir->nr_buffers * sizeof(*bhs)); in adfs_dir_read_buffers() 117 dir->bhs = bhs; in adfs_dir_read_buffers() 129 if (!dir->bhs[i]) { in adfs_dir_read_buffers() [all …]
|
| A D | dir_fplus.c | 83 bp = (void *)dir->bhs[bi]->b_data; in adfs_fplus_checkbyte() 84 bs = dir->bhs[bi]->b_size; in adfs_fplus_checkbyte() 116 dir->bighead = h = (void *)dir->bhs[0]->b_data; in adfs_fplus_read() 136 (dir->bhs[dir->nr_buffers - 1]->b_data + (sb->s_blocksize - 8)); in adfs_fplus_read()
|
| A D | adfs.h | 95 struct buffer_head **bhs; member
|
| /fs/ocfs2/ |
| A D | blockcheck.c | 455 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs() 462 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs() 463 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs() 508 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs() 525 bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs() 526 bhs[i]->b_size * 8 * i); in ocfs2_block_check_validate_bhs() 534 ocfs2_hamming_fix(bhs[i]->b_data, bhs[i]->b_size * 8, in ocfs2_block_check_validate_bhs() 535 bhs[i]->b_size * 8 * i, fix); in ocfs2_block_check_validate_bhs() 540 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_validate_bhs() 585 struct buffer_head **bhs, int nr, in ocfs2_compute_meta_ecc_bhs() argument [all …]
|
| A D | buffer_head_io.c | 108 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync() 110 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync() 116 bh = bhs[i]; in ocfs2_read_blocks_sync() 155 bh = bhs[i - 1]; in ocfs2_read_blocks_sync() 166 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync() 210 if (bhs == NULL) { in ocfs2_read_blocks() 235 if (bhs[i] == NULL) { in ocfs2_read_blocks() 237 if (bhs[i] == NULL) { in ocfs2_read_blocks() 244 bh = bhs[i]; in ocfs2_read_blocks() 337 bh = bhs[i]; in ocfs2_read_blocks() [all …]
|
| A D | blockcheck.h | 35 struct buffer_head **bhs, int nr, 38 struct buffer_head **bhs, int nr, 47 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, 49 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
|
| A D | buffer_head_io.h | 19 unsigned int nr, struct buffer_head *bhs[]); 29 struct buffer_head *bhs[], int flags,
|
| A D | namei.c | 1716 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local 1739 if (!bhs) { in ocfs2_create_symlink_data() 1765 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data() 1766 if (!bhs[virtual]) { in ocfs2_create_symlink_data() 1772 bhs[virtual]); in ocfs2_create_symlink_data() 1775 bhs[virtual], in ocfs2_create_symlink_data() 1784 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data() 1788 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data() 1798 if (bhs) { in ocfs2_create_symlink_data() 1800 brelse(bhs[i]); in ocfs2_create_symlink_data() [all …]
|
| A D | extent_map.c | 967 struct buffer_head *bhs[], int flags, in ocfs2_read_virt_blocks() argument 976 inode, (unsigned long long)v_block, nr, bhs, flags, in ocfs2_read_virt_blocks() 1021 if (!bhs[done + i]) in ocfs2_read_virt_blocks() 1023 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i)); in ocfs2_read_virt_blocks() 1027 bhs + done, flags, validate); in ocfs2_read_virt_blocks()
|
| A D | extent_map.h | 52 struct buffer_head *bhs[], int flags,
|
| A D | ocfs2_trace.h | 1599 void *bhs, unsigned int flags, void *validate), 1600 TP_ARGS(inode, vblock, nr, bhs, flags, validate), 1605 __field(void *, bhs) 1613 __entry->bhs = bhs; 1618 __entry->nr, __entry->bhs, __entry->flags, __entry->validate)
|
| A D | alloc.c | 996 struct buffer_head *bhs[]) in ocfs2_create_new_meta_bhs() argument 1021 bhs[i] = sb_getblk(osb->sb, first_blkno); in ocfs2_create_new_meta_bhs() 1022 if (bhs[i] == NULL) { in ocfs2_create_new_meta_bhs() 1027 ocfs2_set_new_buffer_uptodate(et->et_ci, bhs[i]); in ocfs2_create_new_meta_bhs() 1030 bhs[i], in ocfs2_create_new_meta_bhs() 1037 memset(bhs[i]->b_data, 0, osb->sb->s_blocksize); in ocfs2_create_new_meta_bhs() 1038 eb = (struct ocfs2_extent_block *) bhs[i]->b_data; in ocfs2_create_new_meta_bhs() 1055 ocfs2_journal_dirty(handle, bhs[i]); in ocfs2_create_new_meta_bhs() 1065 brelse(bhs[i]); in ocfs2_create_new_meta_bhs() 1066 bhs[i] = NULL; in ocfs2_create_new_meta_bhs()
|
| /fs/isofs/ |
| A D | compress.c | 58 struct buffer_head **bhs; in zisofs_uncompress_block() local 78 bhs = kcalloc(needblocks + 1, sizeof(*bhs), GFP_KERNEL); in zisofs_uncompress_block() 79 if (!bhs) { in zisofs_uncompress_block() 84 bh_read_batch(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() 197 brelse(bhs[i]); in zisofs_uncompress_block() [all …]
|
| /fs/exfat/ |
| A D | misc.c | 173 int exfat_update_bhs(struct buffer_head **bhs, int nr_bhs, int sync) in exfat_update_bhs() argument 178 set_buffer_uptodate(bhs[i]); in exfat_update_bhs() 179 mark_buffer_dirty(bhs[i]); in exfat_update_bhs() 181 write_dirty_buffer(bhs[i], REQ_SYNC); in exfat_update_bhs() 185 wait_on_buffer(bhs[i]); in exfat_update_bhs() 186 if (!err && !buffer_uptodate(bhs[i])) in exfat_update_bhs()
|
| A D | exfat_fs.h | 575 int exfat_update_bhs(struct buffer_head **bhs, int nr_bhs, int sync);
|
| /fs/gfs2/ |
| A D | meta_io.c | 226 static void gfs2_submit_bhs(blk_opf_t opf, struct buffer_head *bhs[], int num) in gfs2_submit_bhs() argument 229 struct buffer_head *bh = *bhs; in gfs2_submit_bhs() 235 bh = *bhs; in gfs2_submit_bhs() 240 bhs++; in gfs2_submit_bhs() 263 struct buffer_head *bh, *bhs[2]; in gfs2_meta_read() local 281 bhs[num++] = bh; in gfs2_meta_read() 293 bhs[num++] = bh; in gfs2_meta_read() 297 gfs2_submit_bhs(REQ_OP_READ | REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
|
| /fs/ |
| A D | buffer.c | 1298 struct buffer_head *bhs[BH_LRU_SIZE]; member 1345 swap(evictee, b->bhs[i]); in bh_lru_install() 1379 __this_cpu_write(bh_lrus.bhs[i], in lookup_bh_lru() 1380 __this_cpu_read(bh_lrus.bhs[i - 1])); in lookup_bh_lru() 1383 __this_cpu_write(bh_lrus.bhs[0], bh); in lookup_bh_lru() 1528 brelse(b->bhs[i]); in __invalidate_bh_lrus() 1529 b->bhs[i] = NULL; in __invalidate_bh_lrus() 1551 if (b->bhs[i]) in has_bh_in_lru() 3055 brelse(b->bhs[i]); in buffer_exit_cpu_dead() 3056 b->bhs[i] = NULL; in buffer_exit_cpu_dead() [all …]
|
| /fs/ext4/ |
| A D | xattr.c | 385 struct buffer_head **bhs = bhs_inline; in ext4_xattr_inode_read() local 389 bhs = kmalloc_array(bh_count, sizeof(*bhs), GFP_NOFS); in ext4_xattr_inode_read() 390 if (!bhs) in ext4_xattr_inode_read() 395 true /* wait */, bhs); in ext4_xattr_inode_read() 401 if (!bhs[i]) { in ext4_xattr_inode_read() 405 memcpy((char *)buf + blocksize * i, bhs[i]->b_data, in ext4_xattr_inode_read() 411 brelse(bhs[i]); in ext4_xattr_inode_read() 413 if (bhs != bhs_inline) in ext4_xattr_inode_read() 414 kfree(bhs); in ext4_xattr_inode_read()
|
| A D | inode.c | 1057 bool wait, struct buffer_head **bhs) in ext4_bread_batch() argument 1062 bhs[i] = ext4_getblk(NULL, inode, block + i, 0 /* map_flags */); in ext4_bread_batch() 1063 if (IS_ERR(bhs[i])) { in ext4_bread_batch() 1064 err = PTR_ERR(bhs[i]); in ext4_bread_batch() 1072 if (bhs[i] && !ext4_buffer_uptodate(bhs[i])) in ext4_bread_batch() 1073 ext4_read_bh_lock(bhs[i], REQ_META | REQ_PRIO, false); in ext4_bread_batch() 1079 if (bhs[i]) in ext4_bread_batch() 1080 wait_on_buffer(bhs[i]); in ext4_bread_batch() 1083 if (bhs[i] && !buffer_uptodate(bhs[i])) { in ext4_bread_batch() 1092 brelse(bhs[i]); in ext4_bread_batch() [all …]
|
| A D | mballoc.c | 1357 struct buffer_head *bhs; in ext4_mb_init_cache() local 1383 bh = &bhs; in ext4_mb_init_cache() 1506 if (bh != &bhs) in ext4_mb_init_cache()
|
| /fs/nilfs2/ |
| A D | recovery.c | 95 struct buffer_head *bhs, u32 *sum, in nilfs_compute_checksum() argument 107 (unsigned char *)bhs->b_data + offset, size); in nilfs_compute_checksum()
|