Home
last modified time | relevance | path

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

12

/linux/fs/fat/
A Dfatent.c45 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()
197 struct buffer_head **bhs = fatent->bhs; in fat12_ent_next() local
206 if (nextp < (u8 *)(bhs[0]->b_data + (bhs[0]->b_size - 1))) { in fat12_ent_next()
218 bhs[0] = bhs[1]; in fat12_ent_next()
324 struct buffer_head **bhs = fatent->bhs; in fat_ent_update_ptr() local
454 if (fatent->bhs[n] == bhs[i]) in fat_collect_bhs()
[all …]
A Ddir.c1093 if (!bhs[n]) { in fat_zeroed_cluster()
1113 brelse(bhs[i]); in fat_zeroed_cluster()
1123 brelse(bhs[i]); in fat_zeroed_cluster()
1129 bforget(bhs[i]); in fat_zeroed_cluster()
1150 if (!bhs[0]) { in fat_alloc_new_dir()
1233 if (!bhs[n]) { in fat_add_new_entries()
1257 get_bh(bhs[n]); in fat_add_new_entries()
1258 *bh = bhs[n]; in fat_add_new_entries()
1275 bforget(bhs[i]); in fat_add_new_entries()
1363 brelse(bhs[i]); in fat_add_entries()
[all …]
A Dfat.h349 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()
453 extern int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs);
A Dmisc.c356 int fat_sync_bhs(struct buffer_head **bhs, int nr_bhs) in fat_sync_bhs() argument
361 write_dirty_buffer(bhs[i], 0); in fat_sync_bhs()
364 wait_on_buffer(bhs[i]); in fat_sync_bhs()
365 if (!err && !buffer_uptodate(bhs[i])) in fat_sync_bhs()
/linux/fs/ocfs2/
A Dblockcheck.c455 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 Dbuffer_head_io.c108 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()
245 bh = bhs[i]; in ocfs2_read_blocks()
338 bh = bhs[i]; in ocfs2_read_blocks()
[all …]
A Dblockcheck.h35 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 Dbuffer_head_io.h19 unsigned int nr, struct buffer_head *bhs[]);
29 struct buffer_head *bhs[], int flags,
A Dnamei.c1697 struct buffer_head **bhs = NULL; in ocfs2_create_symlink_data() local
1720 if (!bhs) { in ocfs2_create_symlink_data()
1746 bhs[virtual] = sb_getblk(sb, p_blkno); in ocfs2_create_symlink_data()
1747 if (!bhs[virtual]) { in ocfs2_create_symlink_data()
1753 bhs[virtual]); in ocfs2_create_symlink_data()
1756 bhs[virtual], in ocfs2_create_symlink_data()
1765 memcpy(bhs[virtual]->b_data, c, in ocfs2_create_symlink_data()
1769 ocfs2_journal_dirty(handle, bhs[virtual]); in ocfs2_create_symlink_data()
1779 if (bhs) { in ocfs2_create_symlink_data()
1781 brelse(bhs[i]); in ocfs2_create_symlink_data()
[all …]
A Dextent_map.c957 struct buffer_head *bhs[], int flags, in ocfs2_read_virt_blocks() argument
966 inode, (unsigned long long)v_block, nr, bhs, flags, in ocfs2_read_virt_blocks()
1005 if (!bhs[done + i]) in ocfs2_read_virt_blocks()
1007 BUG_ON(bhs[done + i]->b_blocknr != (p_block + i)); in ocfs2_read_virt_blocks()
1011 bhs + done, flags, validate); in ocfs2_read_virt_blocks()
A Dextent_map.h52 struct buffer_head *bhs[], int flags,
/linux/fs/adfs/
A Ddir.c71 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 Ddir_fplus.c83 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 Dadfs.h95 struct buffer_head **bhs; member
/linux/fs/isofs/
A Dcompress.c58 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()
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[curbh]); in zisofs_uncompress_block()
134 if (!buffer_uptodate(bhs[curbh])) { in zisofs_uncompress_block()
138 stream.next_in = bhs[curbh]->b_data + in zisofs_uncompress_block()
192 brelse(bhs[i]); in zisofs_uncompress_block()
[all …]
/linux/fs/exfat/
A Dmisc.c175 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()
A Dfatent.c279 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; in exfat_zeroed_cluster() local
298 bhs[n] = sb_getblk(sb, blknr); in exfat_zeroed_cluster()
299 if (!bhs[n]) { in exfat_zeroed_cluster()
303 memset(bhs[n]->b_data, 0, sb->s_blocksize); in exfat_zeroed_cluster()
306 err = exfat_update_bhs(bhs, n, IS_DIRSYNC(dir)); in exfat_zeroed_cluster()
311 brelse(bhs[i]); in exfat_zeroed_cluster()
318 bforget(bhs[i]); in exfat_zeroed_cluster()
/linux/fs/ntfs/
A Dcompress.c474 struct buffer_head **bhs; in ntfs_read_compressed_block() local
520 bhs = kmalloc(bhs_size, GFP_NOFS); in ntfs_read_compressed_block()
523 kfree(bhs); in ntfs_read_compressed_block()
550 kfree(bhs); 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[i]); in ntfs_read_compressed_block()
882 kfree(bhs); in ntfs_read_compressed_block()
917 brelse(bhs[i]); in ntfs_read_compressed_block()
[all …]
A Daops.c910 struct buffer_head *bhs[MAX_BUF_PER_PAGE]; in ntfs_write_mst_block() local
1077 while (bhs[--nr_bhs] != rec_start_bh) in ntfs_write_mst_block()
1094 bhs[nr_bhs++] = bh; in ntfs_write_mst_block()
1112 tbh = bhs[i]; in ntfs_write_mst_block()
1136 bhs[i] = NULL; in ntfs_write_mst_block()
1164 clear_buffer_dirty(bhs[i]); in ntfs_write_mst_block()
1165 bhs[i] = NULL; in ntfs_write_mst_block()
1177 tbh = bhs[i]; in ntfs_write_mst_block()
1196 tbh = bhs[i]; in ntfs_write_mst_block()
1229 tbh = bhs[i]; in ntfs_write_mst_block()
[all …]
A Dmft.c460 struct buffer_head *bhs[MAX_BHS]; in ntfs_sync_mft_mirror() local
570 bhs[nr_bhs++] = bh; in ntfs_sync_mft_mirror()
578 struct buffer_head *tbh = bhs[i_bhs]; in ntfs_sync_mft_mirror()
590 struct buffer_head *tbh = bhs[i_bhs]; in ntfs_sync_mft_mirror()
605 clear_buffer_dirty(bhs[i_bhs]); in ntfs_sync_mft_mirror()
667 struct buffer_head *bhs[MAX_BHS]; in write_mft_record_nolock() local
757 bhs[nr_bhs++] = bh; in write_mft_record_nolock()
775 struct buffer_head *tbh = bhs[i_bhs]; in write_mft_record_nolock()
790 struct buffer_head *tbh = bhs[i_bhs]; in write_mft_record_nolock()
823 clear_buffer_dirty(bhs[i_bhs]); in write_mft_record_nolock()
/linux/fs/gfs2/
A Dmeta_io.c218 static void gfs2_submit_bhs(int op, int op_flags, struct buffer_head *bhs[], in gfs2_submit_bhs() argument
222 struct buffer_head *bh = *bhs; in gfs2_submit_bhs()
229 bh = *bhs; in gfs2_submit_bhs()
234 bhs++; in gfs2_submit_bhs()
258 struct buffer_head *bh, *bhs[2]; in gfs2_meta_read() local
275 bhs[num++] = bh; in gfs2_meta_read()
287 bhs[num++] = bh; in gfs2_meta_read()
291 gfs2_submit_bhs(REQ_OP_READ, REQ_META | REQ_PRIO, bhs, num); in gfs2_meta_read()
/linux/fs/
A Dbuffer.c1206 struct buffer_head *bhs[BH_LRU_SIZE]; member
1251 swap(evictee, b->bhs[i]); in bh_lru_install()
1281 __this_cpu_write(bh_lrus.bhs[i], in lookup_bh_lru()
1282 __this_cpu_read(bh_lrus.bhs[i - 1])); in lookup_bh_lru()
1285 __this_cpu_write(bh_lrus.bhs[0], bh); in lookup_bh_lru()
1392 brelse(b->bhs[i]); in __invalidate_bh_lrus()
1393 b->bhs[i] = NULL; in __invalidate_bh_lrus()
1415 if (b->bhs[i]) in has_bh_in_lru()
3095 struct buffer_head *bh = bhs[i]; in ll_rw_block()
3339 brelse(b->bhs[i]); in buffer_exit_cpu_dead()
[all …]
/linux/arch/arm/mm/
A Dcache-v4wt.S87 bhs __flush_whole_cache
A Dcache-v4wb.S115 bhs __flush_whole_cache @ flush whole D cache
/linux/fs/ext4/
A Dxattr.c348 struct buffer_head **bhs = bhs_inline; in ext4_xattr_inode_read() local
352 bhs = kmalloc_array(bh_count, sizeof(*bhs), GFP_NOFS); in ext4_xattr_inode_read()
353 if (!bhs) in ext4_xattr_inode_read()
358 true /* wait */, bhs); in ext4_xattr_inode_read()
364 if (!bhs[i]) { in ext4_xattr_inode_read()
368 memcpy((char *)buf + blocksize * i, bhs[i]->b_data, in ext4_xattr_inode_read()
374 brelse(bhs[i]); in ext4_xattr_inode_read()
376 if (bhs != bhs_inline) in ext4_xattr_inode_read()
377 kfree(bhs); in ext4_xattr_inode_read()

Completed in 63 milliseconds

12