/kernel/linux/linux-5.10/fs/fat/ |
H A D | fatent.c | 44 struct buffer_head **bhs = fatent->bhs; in fat12_ent_set_ptr() local 46 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 47 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr() 48 fatent->u.ent12_p[1] = bhs[0]->b_data + (offset + 1); in fat12_ent_set_ptr() 50 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 51 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr() 52 fatent->u.ent12_p[1] = bhs[1]->b_data; in fat12_ent_set_ptr() 59 fatent->u.ent16_p = (__le16 *)(fatent->bhs[0]->b_data + offset); in fat16_ent_set_ptr() 65 fatent->u.ent32_p = (__le32 *)(fatent->bhs[ in fat32_ent_set_ptr() 71 struct buffer_head **bhs = fatent->bhs; fat12_ent_bread() local 197 struct buffer_head **bhs = fatent->bhs; fat12_ent_next() local 324 struct buffer_head **bhs = fatent->bhs; fat_ent_update_ptr() local 375 fat_mirror_bhs(struct super_block *sb, struct buffer_head **bhs, int nr_bhs) fat_mirror_bhs() argument 447 fat_collect_bhs(struct buffer_head **bhs, int *nr_bhs, struct fat_entry *fatent) fat_collect_bhs() argument 471 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; fat_alloc_clusters() local 559 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; fat_free_clusters() local [all...] |
H A D | dir.c | 1082 struct buffer_head **bhs, int nr_bhs) in fat_zeroed_cluster() 1092 bhs[n] = sb_getblk(sb, blknr); in fat_zeroed_cluster() 1093 if (!bhs[n]) { in fat_zeroed_cluster() 1098 lock_buffer(bhs[n]); in fat_zeroed_cluster() 1099 memset(bhs[n]->b_data, 0, sb->s_blocksize); in fat_zeroed_cluster() 1100 set_buffer_uptodate(bhs[n]); in fat_zeroed_cluster() 1101 unlock_buffer(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[ in fat_zeroed_cluster() 1081 fat_zeroed_cluster(struct inode *dir, sector_t blknr, int nr_used, struct buffer_head **bhs, int nr_bhs) fat_zeroed_cluster() argument 1137 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; fat_alloc_new_dir() local 1204 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; fat_add_new_entries() local 1286 struct buffer_head *bh, *prev, *bhs[3]; /* 32*slots (672bytes) */ fat_add_entries() local [all...] |
H A D | fat.h | 349 struct buffer_head *bhs[2]; member 358 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_init() 373 brelse(fatent->bhs[i]); in fatent_brelse() 375 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_brelse() 451 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
|
/kernel/linux/linux-6.6/fs/fat/ |
H A D | fatent.c | 45 struct buffer_head **bhs = fatent->bhs; in fat12_ent_set_ptr() local 47 WARN_ON(offset >= (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 48 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr() 49 fatent->u.ent12_p[1] = bhs[0]->b_data + (offset + 1); in fat12_ent_set_ptr() 51 WARN_ON(offset != (bhs[0]->b_size - 1)); in fat12_ent_set_ptr() 52 fatent->u.ent12_p[0] = bhs[0]->b_data + offset; in fat12_ent_set_ptr() 53 fatent->u.ent12_p[1] = bhs[1]->b_data; in fat12_ent_set_ptr() 60 fatent->u.ent16_p = (__le16 *)(fatent->bhs[0]->b_data + offset); in fat16_ent_set_ptr() 66 fatent->u.ent32_p = (__le32 *)(fatent->bhs[ in fat32_ent_set_ptr() 72 struct buffer_head **bhs = fatent->bhs; fat12_ent_bread() local 198 struct buffer_head **bhs = fatent->bhs; fat12_ent_next() local 325 struct buffer_head **bhs = fatent->bhs; fat_ent_update_ptr() local 376 fat_mirror_bhs(struct super_block *sb, struct buffer_head **bhs, int nr_bhs) fat_mirror_bhs() argument 448 fat_collect_bhs(struct buffer_head **bhs, int *nr_bhs, struct fat_entry *fatent) fat_collect_bhs() argument 472 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; fat_alloc_clusters() local 560 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; fat_free_clusters() local [all...] |
H A D | dir.c | 1082 struct buffer_head **bhs, int nr_bhs) in fat_zeroed_cluster() 1092 bhs[n] = sb_getblk(sb, blknr); in fat_zeroed_cluster() 1093 if (!bhs[n]) { in fat_zeroed_cluster() 1098 lock_buffer(bhs[n]); in fat_zeroed_cluster() 1099 memset(bhs[n]->b_data, 0, sb->s_blocksize); in fat_zeroed_cluster() 1100 set_buffer_uptodate(bhs[n]); in fat_zeroed_cluster() 1101 unlock_buffer(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[ in fat_zeroed_cluster() 1081 fat_zeroed_cluster(struct inode *dir, sector_t blknr, int nr_used, struct buffer_head **bhs, int nr_bhs) fat_zeroed_cluster() argument 1137 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; fat_alloc_new_dir() local 1204 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; fat_add_new_entries() local 1286 struct buffer_head *bh, *prev, *bhs[3]; /* 32*slots (672bytes) */ fat_add_entries() local [all...] |
H A D | fat.h | 350 struct buffer_head *bhs[2]; member 359 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_init() 374 brelse(fatent->bhs[i]); in fatent_brelse() 376 fatent->bhs[0] = fatent->bhs[1] = NULL; in fatent_brelse() 464 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
|
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | blockcheck.c | 431 * bhs is the blocks to be checked. bc is a pointer to the 443 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_compute_bhs() argument 457 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs() 463 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, in ocfs2_block_check_compute_bhs() 464 bhs[i]->b_size * 8, in ocfs2_block_check_compute_bhs() 465 bhs[i]->b_size * 8 * i); in ocfs2_block_check_compute_bhs() 487 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_validate_bhs() argument 510 crc = crc32_le(crc, bhs[i]->b_data, bhs[ in ocfs2_block_check_validate_bhs() 586 ocfs2_compute_meta_ecc_bhs(struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) ocfs2_compute_meta_ecc_bhs() argument 594 ocfs2_validate_meta_ecc_bhs(struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) ocfs2_validate_meta_ecc_bhs() argument [all...] |
H A D | buffer_head_io.c | 88 /* Caller must provide a bhs[] with all NULL or non-NULL entries, so it 92 unsigned int nr, struct buffer_head *bhs[]) in ocfs2_read_blocks_sync() 107 new_bh = (bhs[0] == NULL); in ocfs2_read_blocks_sync() 110 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync() 111 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync() 112 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync() 118 bh = bhs[i]; in ocfs2_read_blocks_sync() 157 bh = bhs[i - 1]; in ocfs2_read_blocks_sync() 168 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync() 192 /* Caller must provide a bhs[] wit 91 ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, unsigned int nr, struct buffer_head *bhs[]) ocfs2_read_blocks_sync() argument 195 ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, struct buffer_head *bhs[], int flags, int (*validate)(struct super_block *sb, struct buffer_head *bh)) ocfs2_read_blocks() argument [all...] |
H A D | blockcheck.h | 37 struct buffer_head **bhs, int nr, 40 struct buffer_head **bhs, int nr, 49 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, 51 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
|
H A D | buffer_head_io.h | 21 unsigned int nr, struct buffer_head *bhs[]); 31 struct buffer_head *bhs[], int flags,
|
/kernel/linux/linux-6.6/fs/ocfs2/ |
H A D | blockcheck.c | 429 * bhs is the blocks to be checked. bc is a pointer to the 441 void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_compute_bhs() argument 455 crc = crc32_le(crc, bhs[i]->b_data, bhs[i]->b_size); in ocfs2_block_check_compute_bhs() 461 ecc = (u16)ocfs2_hamming_encode(ecc, bhs[i]->b_data, 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() 485 int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr, in ocfs2_block_check_validate_bhs() argument 508 crc = crc32_le(crc, bhs[i]->b_data, bhs[ in ocfs2_block_check_validate_bhs() 584 ocfs2_compute_meta_ecc_bhs(struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) ocfs2_compute_meta_ecc_bhs() argument 592 ocfs2_validate_meta_ecc_bhs(struct super_block *sb, struct buffer_head **bhs, int nr, struct ocfs2_block_check *bc) ocfs2_validate_meta_ecc_bhs() argument [all...] |
H A D | buffer_head_io.c | 86 /* Caller must provide a bhs[] with all NULL or non-NULL entries, so it 90 unsigned int nr, struct buffer_head *bhs[]) in ocfs2_read_blocks_sync() 105 new_bh = (bhs[0] == NULL); in ocfs2_read_blocks_sync() 108 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync() 109 bhs[i] = sb_getblk(osb->sb, block++); 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() 190 /* Caller must provide a bhs[] wit 89 ocfs2_read_blocks_sync(struct ocfs2_super *osb, u64 block, unsigned int nr, struct buffer_head *bhs[]) ocfs2_read_blocks_sync() argument 193 ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr, struct buffer_head *bhs[], int flags, int (*validate)(struct super_block *sb, struct buffer_head *bh)) ocfs2_read_blocks() argument [all...] |
H 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,
|
H A D | buffer_head_io.h | 19 unsigned int nr, struct buffer_head *bhs[]); 29 struct buffer_head *bhs[], int flags,
|
/kernel/linux/linux-5.10/fs/adfs/ |
H A D | dir.c | 30 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom() 37 memcpy(dst, dir->bhs[index]->b_data + offset, len); in adfs_dir_copyfrom() 55 memcpy(dir->bhs[index]->b_data + offset, src, remain); in adfs_dir_copyto() 62 memcpy(dir->bhs[index]->b_data + offset, src, len); in adfs_dir_copyto() 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() 100 struct buffer_head **bhs; in adfs_dir_read_buffers() local [all...] |
/kernel/linux/linux-6.6/fs/adfs/ |
H A D | dir.c | 30 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom() 37 memcpy(dst, dir->bhs[index]->b_data + offset, len); in adfs_dir_copyfrom() 55 memcpy(dir->bhs[index]->b_data + offset, src, remain); in adfs_dir_copyto() 62 memcpy(dir->bhs[index]->b_data + offset, src, len); in adfs_dir_copyto() 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() 100 struct buffer_head **bhs; in adfs_dir_read_buffers() local [all...] |
/kernel/linux/linux-5.10/fs/isofs/ |
H A D | compress.c | 58 struct buffer_head **bhs; in zisofs_uncompress_block() local 79 bhs = kcalloc(needblocks + 1, sizeof(*bhs), GFP_KERNEL); in zisofs_uncompress_block() 80 if (!bhs) { in zisofs_uncompress_block() 84 haveblocks = isofs_get_blocks(inode, blocknum, bhs, needblocks); in zisofs_uncompress_block() 85 ll_rw_block(REQ_OP_READ, 0, haveblocks, bhs); in zisofs_uncompress_block() 96 if (!bhs[0]) in zisofs_uncompress_block() 99 wait_on_buffer(bhs[0]); in zisofs_uncompress_block() 100 if (!buffer_uptodate(bhs[0])) { in zisofs_uncompress_block() 133 wait_on_buffer(bhs[curb in zisofs_uncompress_block() [all...] |
/kernel/linux/linux-6.6/fs/isofs/ |
H 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() 83 haveblocks = isofs_get_blocks(inode, blocknum, bhs, needblocks); 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[curb in zisofs_uncompress_block() [all...] |
/kernel/linux/linux-5.10/fs/exfat/ |
H A D | misc.c | 175 int exfat_update_bhs(struct buffer_head **bhs, int nr_bhs, int sync) in exfat_update_bhs() argument 180 set_buffer_uptodate(bhs[i]); in exfat_update_bhs() 181 mark_buffer_dirty(bhs[i]); in exfat_update_bhs() 183 write_dirty_buffer(bhs[i], 0); in exfat_update_bhs() 187 wait_on_buffer(bhs[i]); in exfat_update_bhs() 188 if (!err && !buffer_uptodate(bhs[i])) in exfat_update_bhs()
|
H A D | fatent.c | 228 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; in exfat_zeroed_cluster() local 247 bhs[n] = sb_getblk(sb, blknr); in exfat_zeroed_cluster() 248 if (!bhs[n]) { in exfat_zeroed_cluster() 252 memset(bhs[n]->b_data, 0, sb->s_blocksize); in exfat_zeroed_cluster() 255 err = exfat_update_bhs(bhs, n, IS_DIRSYNC(dir)); in exfat_zeroed_cluster() 260 brelse(bhs[i]); in exfat_zeroed_cluster() 267 bforget(bhs[i]); in exfat_zeroed_cluster()
|
/kernel/linux/linux-6.6/fs/exfat/ |
H A D | misc.c | 165 int exfat_update_bhs(struct buffer_head **bhs, int nr_bhs, int sync) in exfat_update_bhs() argument 170 set_buffer_uptodate(bhs[i]); in exfat_update_bhs() 171 mark_buffer_dirty(bhs[i]); in exfat_update_bhs() 173 write_dirty_buffer(bhs[i], REQ_SYNC); in exfat_update_bhs() 177 wait_on_buffer(bhs[i]); in exfat_update_bhs() 178 if (!err && !buffer_uptodate(bhs[i])) in exfat_update_bhs()
|
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | compress.c | 474 struct buffer_head **bhs; in ntfs_read_compressed_block() local 520 bhs = kmalloc(bhs_size, GFP_NOFS); in ntfs_read_compressed_block() 522 if (unlikely(!pages || !bhs || !completed_pages)) { in ntfs_read_compressed_block() 523 kfree(bhs); in ntfs_read_compressed_block() 550 kfree(bhs); in ntfs_read_compressed_block() 639 if (unlikely(!(bhs[nr_bhs] = sb_getblk(sb, block)))) in ntfs_read_compressed_block() 651 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block() 666 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block() 707 memcpy(cb_pos, bhs[i]->b_data, block_size); in ntfs_read_compressed_block() 875 brelse(bhs[ in ntfs_read_compressed_block() [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | compress.c | 474 struct buffer_head **bhs; in ntfs_read_compressed_block() local 520 bhs = kmalloc(bhs_size, GFP_NOFS); in ntfs_read_compressed_block() 522 if (unlikely(!pages || !bhs || !completed_pages)) { in ntfs_read_compressed_block() 523 kfree(bhs); in ntfs_read_compressed_block() 550 kfree(bhs); in ntfs_read_compressed_block() 639 if (unlikely(!(bhs[nr_bhs] = sb_getblk(sb, block)))) in ntfs_read_compressed_block() 651 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block() 666 struct buffer_head *tbh = bhs[i]; in ntfs_read_compressed_block() 707 memcpy(cb_pos, bhs[i]->b_data, block_size); in ntfs_read_compressed_block() 875 brelse(bhs[ in ntfs_read_compressed_block() [all...] |
/kernel/linux/linux-5.10/fs/gfs2/ |
H A D | meta_io.c | 212 static void gfs2_submit_bhs(int op, int op_flags, struct buffer_head *bhs[], in gfs2_submit_bhs() argument 216 struct buffer_head *bh = *bhs; in gfs2_submit_bhs() 223 bh = *bhs; in gfs2_submit_bhs() 228 bhs++; in gfs2_submit_bhs() 251 struct buffer_head *bh, *bhs[2]; in gfs2_meta_read() local 269 bhs[num++] = bh; in gfs2_meta_read() 281 bhs[num++] = bh; in gfs2_meta_read() 285 gfs2_submit_bhs(REQ_OP_READ, REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
|
/kernel/linux/linux-6.6/fs/gfs2/ |
H A D | meta_io.c | 220 static void gfs2_submit_bhs(blk_opf_t opf, struct buffer_head *bhs[], int num) in gfs2_submit_bhs() argument 223 struct buffer_head *bh = *bhs; in gfs2_submit_bhs() 229 bh = *bhs; in gfs2_submit_bhs() 234 bhs++; in gfs2_submit_bhs() 257 struct buffer_head *bh, *bhs[2]; in gfs2_meta_read() local 274 bhs[num++] = bh; in gfs2_meta_read() 286 bhs[num++] = bh; in gfs2_meta_read() 290 gfs2_submit_bhs(REQ_OP_READ | REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
|