Home
last modified time | relevance | path

Searched refs:bh (Results 26 – 50 of 408) sorted by relevance

12345678910>>...17

/openbmc/linux/fs/ext4/
H A Dext4_jbd2.c192 if (bh) in ext4_journal_abort_handle()
282 bforget(bh); in __ext4_forget()
293 if (bh) { in __ext4_forget()
311 bh, handle, err); in __ext4_forget()
351 set_buffer_meta(bh); in __ext4_handle_dirty_metadata()
352 set_buffer_prio(bh); in __ext4_handle_dirty_metadata()
353 set_buffer_uptodate(bh); in __ext4_handle_dirty_metadata()
371 bh->b_blocknr, in __ext4_handle_dirty_metadata()
385 mark_buffer_dirty(bh); in __ext4_handle_dirty_metadata()
387 sync_dirty_buffer(bh); in __ext4_handle_dirty_metadata()
[all …]
H A Dindirect.c40 p->bh = bh; in add_chain()
174 put_bh(bh); in ext4_get_branch()
179 put_bh(bh); in ext4_get_branch()
184 add_chain(++p, bh, (__le32 *)bh->b_data + *++offsets); in ext4_get_branch()
230 if (ind->bh) in ext4_find_near()
371 memset(bh->b_data, 0, bh->b_size); in ext4_alloc_branch()
438 if (where->bh) { in ext4_splice_branch()
701 if (bh) { in ext4_ind_trunc_restart_fn()
746 if (bh) { in ext4_ind_truncate_ensure_credits()
1053 brelse(bh); in ext4_free_branches()
[all …]
H A Dnamei.c85 return bh; in ext4_append()
96 return bh; in ext4_append()
99 brelse(bh); in ext4_append()
160 if (!bh) in __ext4_read_dirblock()
757 if (!bh || IS_ERR(bh)) in dx_show_entries()
1057 p->bh = bh; in ext4_htree_next_block()
1109 bh->b_data, bh->b_size, in htree_dirblock_to_tree()
2334 frame->bh = bh; in make_indexed_dir()
3098 if (ext4_check_dir_entry(inode, NULL, de, bh, bh->b_data, bh->b_size, in ext4_empty_dir()
3107 if (ext4_check_dir_entry(inode, NULL, de, bh, bh->b_data, bh->b_size, in ext4_empty_dir()
[all …]
H A Dballoc.c303 if (bh) in ext4_get_group_desc()
304 *bh = bh_p; in ext4_get_group_desc()
493 put_bh(bh); in ext4_read_block_bitmap_nowait()
529 return bh; in ext4_read_block_bitmap_nowait()
549 return bh; in ext4_read_block_bitmap_nowait()
554 return bh; in ext4_read_block_bitmap_nowait()
556 put_bh(bh); in ext4_read_block_bitmap_nowait()
593 if (IS_ERR(bh)) in ext4_read_block_bitmap()
594 return bh; in ext4_read_block_bitmap()
597 put_bh(bh); in ext4_read_block_bitmap()
[all …]
H A Dxattr.c173 bh->b_blocknr, BHDR(bh)); in ext4_xattr_block_csum_set()
199 if (bh) { in check_xattrs()
283 if (bh) in check_xattrs()
288 if (bh) in check_xattrs()
303 return check_xattrs(inode, bh, BFIRST(bh), bh->b_data + bh->b_size, in __ext4_xattr_check_block()
601 end = bh->b_data + bh->b_size; in ext4_xattr_block_get()
1907 bs->s.end = bs->bh->b_data + bs->bh->b_size; in ext4_xattr_block_find()
2128 } else if (bs->bh && s->base == bs->bh->b_data) { in ext4_xattr_block_set()
2202 if (bs->bh && bs->bh != new_bh) { in ext4_xattr_block_set()
2230 if (!(bs->bh && s->base == bs->bh->b_data)) in ext4_xattr_block_set()
[all …]
/openbmc/linux/fs/jbd2/
H A Drecovery.c96 if (!bh) { in do_readahead()
101 if (!buffer_uptodate(bh) && !buffer_locked(bh)) { in do_readahead()
109 brelse(bh); in do_readahead()
152 if (!bh) in jread()
171 brelse(bh); in jread()
175 *bhp = bh; in jread()
261 brelse(bh); in fc_do_one_pass()
554 brelse(bh); in do_one_pass()
564 brelse(bh); in do_one_pass()
719 brelse(bh); in do_one_pass()
[all …]
H A Dtransaction.c932 bh->b_bdev, (unsigned long long)bh->b_blocknr); in warn_dirty_buffer()
942 source = kmap_local_folio(bh->b_folio, bh_offset(bh)); in jbd2_freeze_jh_data()
1411 memcpy(jh->b_committed_data, bh->b_data, bh->b_size); in jbd2_journal_get_undo_access()
1799 __brelse(bh); in jbd2_journal_forget()
2088 get_bh(bh); in jbd2_journal_unfile_buffer()
2095 __brelse(bh); in jbd2_journal_unfile_buffer()
2141 bh = head; in jbd2_journal_try_to_free_buffers()
2166 } while ((bh = bh->b_this_page) != head); in jbd2_journal_try_to_free_buffers()
2411 J_ASSERT_BH(bh, !buffer_jbddirty(bh)); in journal_unmap_buffer()
2455 bh = head; in jbd2_journal_invalidate_folio()
[all …]
/openbmc/linux/fs/affs/
H A Daffs.h21 #define AFFS_HEAD(bh) ((struct affs_head *)(bh)->b_data) argument
23 #define AFFS_ROOT_HEAD(bh) ((struct affs_root_head *)(bh)->b_data) argument
25 #define AFFS_DATA_HEAD(bh) ((struct affs_data_head *)(bh)->b_data) argument
26 #define AFFS_DATA(bh) (((struct affs_data_head *)(bh)->b_data)->data) argument
257 lock_buffer(bh); in affs_getzeroblk()
260 unlock_buffer(bh); in affs_getzeroblk()
261 return bh; in affs_getzeroblk()
272 wait_on_buffer(bh); in affs_getemptyblk()
274 return bh; in affs_getemptyblk()
281 if (bh) in affs_brelse()
[all …]
H A Dbitmap.c43 struct buffer_head *bh; in affs_free_block() local
59 bh = sbi->s_bmap_bh; in affs_free_block()
61 affs_brelse(bh); in affs_free_block()
63 if (!bh) in affs_free_block()
65 sbi->s_bmap_bh = bh; in affs_free_block()
171 bh = sbi->s_bmap_bh; in affs_alloc_block()
173 affs_brelse(bh); in affs_alloc_block()
175 if (!bh) in affs_alloc_block()
279 affs_brelse(bh); in affs_init_bitmap()
283 if (!bh) { in affs_init_bitmap()
[all …]
H A Dinode.c39 if (!bh) { in affs_iget()
159 affs_brelse(bh); in affs_iget()
164 affs_brelse(bh); in affs_iget()
184 if (!bh) { in affs_write_inode()
213 affs_brelse(bh); in affs_write_inode()
308 if (!bh) in affs_new_inode()
311 affs_brelse(bh); in affs_new_inode()
364 if (!bh) in affs_add_entry()
376 inode_bh = bh; in affs_add_entry()
378 if (!bh) in affs_add_entry()
[all …]
/openbmc/linux/fs/nilfs2/
H A Dsegbuf.c97 struct buffer_head *bh; in nilfs_segbuf_extend_segsum() local
101 if (unlikely(!bh)) in nilfs_segbuf_extend_segsum()
104 lock_buffer(bh); in nilfs_segbuf_extend_segsum()
106 memset(bh->b_data, 0, bh->b_size); in nilfs_segbuf_extend_segsum()
109 unlock_buffer(bh); in nilfs_segbuf_extend_segsum()
121 if (unlikely(!bh)) in nilfs_segbuf_extend_payload()
125 *bhp = bh; in nilfs_segbuf_extend_payload()
220 crc = crc32_le(crc, bh->b_data, bh->b_size); in nilfs_segbuf_fill_in_data_crc()
224 crc = crc32_le(crc, kaddr + bh_offset(bh), bh->b_size); in nilfs_segbuf_fill_in_data_crc()
253 brelse(bh); in nilfs_release_buffers()
[all …]
/openbmc/linux/fs/ntfs/
H A Daops.c98 tmp = bh; in ntfs_end_buffer_async_read()
199 BUG_ON(!bh); in ntfs_read_block()
794 } while (block++, (bh = bh->b_this_page) != head); in ntfs_write_block()
801 bh = head; in ntfs_write_block()
812 } while ((bh = bh->b_this_page) != head); in ntfs_write_block()
819 if (buffer_mapped(bh) && buffer_dirty(bh)) { in ntfs_write_block()
834 } while ((bh = bh->b_this_page) != head); in ntfs_write_block()
865 bh = next; in ntfs_write_block()
1097 } while (block++, (bh = bh->b_this_page) != head); in ntfs_write_mst_block()
1733 bh = bh->b_this_page; in mark_ntfs_record_dirty()
[all …]
/openbmc/qemu/util/
H A Dasync.c111 if (!bh) { in aio_bh_dequeue()
123 return bh; in aio_bh_dequeue()
129 QEMUBH *bh; in aio_bh_schedule_oneshot_full() local
143 QEMUBH *bh; in aio_bh_new_full() local
152 return bh; in aio_bh_new_full()
164 trace_reentrant_aio(bh->ctx, bh->name); in aio_bh_call()
169 bh->cb(bh->opaque); in aio_bh_call()
206 if (!bh) { in aio_bh_poll()
253 QEMUBH *bh; in aio_compute_bh_timeout() local
327 QEMUBH *bh; in aio_ctx_check() local
[all …]
/openbmc/linux/fs/gfs2/
H A Ddir.c98 *bhp = bh; in gfs2_dir_get_new_buffer()
112 brelse(bh); in gfs2_dir_get_existing_buffer()
115 *bhp = bh; in gfs2_dir_get_existing_buffer()
212 brelse(bh); in gfs2_dir_write_data()
315 brelse(bh); in gfs2_dir_read_data()
637 char *bh_end = bh->b_data + bh->b_size; in dirent_next()
856 *pbh = bh; in gfs2_dirent_search()
875 if (!bh) in new_leaf()
893 *pbh = bh; in new_leaf()
1799 struct buffer_head *bh = da->bh; in gfs2_dir_add() local
[all …]
H A Daops.c45 struct buffer_head *bh; in gfs2_trans_add_databufs() local
49 for (bh = head, start = 0; bh != head || !start; in gfs2_trans_add_databufs()
50 bh = bh->b_this_page, start = end) { in gfs2_trans_add_databufs()
619 lock_buffer(bh); in gfs2_discard()
656 bh = head; in gfs2_invalidate_folio()
664 bh = bh->b_this_page; in gfs2_invalidate_folio()
705 bh = head; in gfs2_release_folio()
712 if (buffer_dirty(bh) || WARN_ON(buffer_pinned(bh))) in gfs2_release_folio()
714 bh = bh->b_this_page; in gfs2_release_folio()
717 bh = head; in gfs2_release_folio()
[all …]
/openbmc/linux/fs/sysv/
H A Ditree.c70 p->bh = bh; in add_chain()
82 return (sysv_zone_t*)((char*)bh->b_data + bh->b_size); in block_end()
102 if (!bh) in get_branch()
107 add_chain(++p, bh, (sysv_zone_t*)bh->b_data + *++offsets); in get_branch()
116 brelse(bh); in get_branch()
148 if (!bh) { in alloc_branch()
152 lock_buffer(bh); in alloc_branch()
154 branch[n].bh = bh; in alloc_branch()
189 if (where->bh) in splice_branch()
354 if (!bh) in free_branches()
[all …]
/openbmc/linux/fs/udf/
H A Dballoc.c44 if (!bh) in read_block_bitmap()
411 epos.bh = oepos.bh = NULL; in udf_table_free_blocks()
454 if (epos.bh != oepos.bh) { in udf_table_free_blocks()
458 oepos.bh = epos.bh; in udf_table_free_blocks()
509 brelse(epos.bh); in udf_table_free_blocks()
543 epos.bh = NULL; in udf_table_prealloc_blocks()
569 brelse(epos.bh); in udf_table_prealloc_blocks()
611 epos.bh = goal_epos.bh = NULL; in udf_table_new_block()
628 if (goal_epos.bh != epos.bh) { in udf_table_new_block()
630 goal_epos.bh = epos.bh; in udf_table_new_block()
[all …]
H A Ddirectory.c198 if (!iter->bh[0]) { in udf_fiiter_load_bhs()
221 if (!iter->bh[1]) { in udf_fiiter_load_bhs()
234 iter->bh[0] = iter->bh[1] = NULL; in udf_fiiter_load_bhs()
245 iter->bh[0] = iter->bh[1] = NULL; in udf_fiiter_init()
298 iter->bh[0] = iter->bh[1]; in udf_fiiter_advance()
318 iter->bh[0] = iter->bh[1] = NULL; in udf_fiiter_release()
414 if (iter->bh[1]) { in udf_fiiter_write_fi()
427 if (iter->bh[1]) in udf_fiiter_write_fi()
470 if (!bh) { in udf_fiiter_append_blk()
483 iter->bh[0] = bh; in udf_fiiter_append_blk()
[all …]
/openbmc/linux/fs/bfs/
H A Ddir.c48 if (!bh) { in bfs_readdir()
59 brelse(bh); in bfs_readdir()
66 brelse(bh); in bfs_readdir()
138 if (bh) { in bfs_lookup()
140 brelse(bh); in bfs_lookup()
197 brelse(bh); in bfs_unlink()
287 if (!bh) in bfs_add_entry()
308 brelse(bh); in bfs_add_entry()
336 if (!bh) { in bfs_find_entry()
353 bh = NULL; in bfs_find_entry()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-aio.c42 QEMUBH *bh; member
84 data->bh = NULL; in bh_delete_cb()
178 qemu_bh_schedule(data.bh); in test_bh_schedule()
186 qemu_bh_delete(data.bh); in test_bh_schedule()
194 qemu_bh_schedule(data.bh); in test_bh_schedule10()
210 qemu_bh_delete(data.bh); in test_bh_schedule10()
221 qemu_bh_cancel(data.bh); in test_bh_cancel()
226 qemu_bh_delete(data.bh); in test_bh_cancel()
237 qemu_bh_delete(data.bh); in test_bh_delete()
319 qemu_bh_delete(data.bh); in test_bh_flush()
[all …]
/openbmc/linux/fs/reiserfs/
H A Djournal.c622 bh->b_blocknr, bh->b_bdev); in reiserfs_end_buffer_io_sync()
695 chunk->bh[chunk->nr++] = bh; in add_to_chunk()
767 jh->bh = bh; in __add_jh()
806 bh = jh->bh; in write_ordered_buffers()
848 bh = jh->bh; in write_ordered_buffers()
2329 if (!bh || buffer_uptodate(bh)) in reiserfs_breada()
3369 cn->bh = bh; in journal_mark_dirty()
3380 cn->bh = bh; in journal_mark_dirty()
3445 bh = cn->bh; in remove_from_transaction()
3758 bh = cn->bh; in journal_mark_freed()
[all …]
/openbmc/linux/fs/exfat/
H A Ddir.c485 brelse(bh); in exfat_init_dir_entry()
495 brelse(bh); in exfat_init_dir_entry()
570 brelse(bh); in exfat_init_ext_entry()
579 brelse(bh); in exfat_init_ext_entry()
741 if (!bh || !buffer_uptodate(bh)) { in exfat_dir_readahead()
771 if (!*bh) in exfat_get_dentry()
879 if (!bh) in exfat_get_dentry_set()
881 es->bh[es->num_bh++] = bh; in exfat_get_dentry_set()
898 es->bh[0] = bh; in exfat_get_dentry_set()
916 if (!bh) in exfat_get_dentry_set()
[all …]
/openbmc/linux/fs/fat/
H A Ddir.c65 if (bh == NULL || !buffer_uptodate(bh)) { in fat_dir_readahead()
69 brelse(bh); in fat_dir_readahead()
91 brelse(*bh); in fat__get_entry()
92 *bh = NULL; in fat__get_entry()
531 sinfo->bh = bh; in fat_search_long()
588 bh = NULL; in __fat_readdir()
693 brelse(bh); in __fat_readdir()
912 bh = NULL; in fat_dir_empty()
937 bh = NULL; in fat_subdirs()
1043 bh = sinfo->bh; in fat_remove_entries()
[all …]
/openbmc/linux/fs/isofs/
H A Dnamei.c58 if (!bh) { in isofs_find_entry()
60 if (!bh) in isofs_find_entry()
68 brelse(bh); in isofs_find_entry()
69 bh = NULL; in isofs_find_entry()
76 block_saved = bh->b_blocknr; in isofs_find_entry()
87 brelse(bh); in isofs_find_entry()
88 bh = NULL; in isofs_find_entry()
91 if (!bh) in isofs_find_entry()
105 brelse(bh); in isofs_find_entry()
145 brelse(bh); in isofs_find_entry()
[all …]
/openbmc/linux/fs/omfs/
H A Dbitmap.c53 struct buffer_head *bh; in set_run() local
58 if (!bh) in set_run()
66 mark_buffer_dirty(bh); in set_run()
67 brelse(bh); in set_run()
68 bh = sb_bread(sb, in set_run()
70 if (!bh) in set_run()
81 mark_buffer_dirty(bh); in set_run()
82 brelse(bh); in set_run()
93 struct buffer_head *bh; in omfs_allocate_block() local
110 if (!bh) in omfs_allocate_block()
[all …]

12345678910>>...17