/openbmc/linux/fs/ocfs2/ |
H A D | buffer_head_io.c | 59 lock_buffer(bh); in ocfs2_write_block() 116 bh = bhs[i]; in ocfs2_read_blocks_sync() 134 lock_buffer(bh); in ocfs2_read_blocks_sync() 155 bh = bhs[i - 1]; in ocfs2_read_blocks_sync() 165 put_bh(bh); in ocfs2_read_blocks_sync() 167 } else if (bh && buffer_uptodate(bh)) { in ocfs2_read_blocks_sync() 245 bh = bhs[i]; in ocfs2_read_blocks() 282 ignore_cache, buffer_jbd(bh), buffer_dirty(bh)); in ocfs2_read_blocks() 338 bh = bhs[i]; in ocfs2_read_blocks() 352 put_bh(bh); in ocfs2_read_blocks() [all …]
|
/openbmc/linux/fs/ |
H A D | buffer.c | 112 bh = bh->b_this_page; in buffer_check_dirty_writeback() 220 bh = bh->b_this_page; in __find_get_block_slow() 365 ctx->bh = bh; in end_buffer_async_read_io() 734 bh = bh->b_this_page; in block_dirty_folio() 982 bh = bh->b_this_page; in link_dev_buffers() 1023 bh = bh->b_this_page; in folio_init_buffers() 1653 bh = bh->b_this_page; in folio_create_empty_buffers() 1870 bh = bh->b_this_page; in __block_write_full_folio() 2009 bh = bh->b_this_page; in folio_zero_new_buffers() 2198 bh = bh->b_this_page; in __block_commit_write() [all …]
|
/openbmc/linux/fs/gfs2/ |
H A D | meta_io.c | 43 bh = head; in gfs2_aspace_writepage() 66 } while ((bh = bh->b_this_page) != head); in gfs2_aspace_writepage() 81 bh = next; in gfs2_aspace_writepage() 152 for (bh = page_buffers(page); bufnum--; bh = bh->b_this_page) in gfs2_getbuf() 163 return bh; in gfs2_getbuf() 191 return bh; in gfs2_meta_new() 205 bh = bh->b_this_page; in gfs2_meta_read_endio() 209 bh->b_end_io(bh, !bio->bi_status); in gfs2_meta_read_endio() 230 if (!bio_add_page(bio, bh->b_page, bh->b_size, bh_offset(bh))) { in gfs2_submit_bhs() 294 bh = *bhp; in gfs2_meta_read() [all …]
|
/openbmc/linux/fs/hpfs/ |
H A D | buffer.c | 50 if (bh) { in hpfs_prefetch_sectors() 52 brelse(bh); in hpfs_prefetch_sectors() 55 brelse(bh); in hpfs_prefetch_sectors() 83 if (bh != NULL) in hpfs_map_sector() 103 if (!buffer_uptodate(bh)) wait_on_buffer(bh); in hpfs_get_sector() 135 if (likely(qbh->bh[1]->b_data == qbh->bh[0]->b_data + 1 * 512) && in hpfs_map_4sectors() 136 likely(qbh->bh[2]->b_data == qbh->bh[0]->b_data + 2 * 512) && in hpfs_map_4sectors() 137 likely(qbh->bh[3]->b_data == qbh->bh[0]->b_data + 3 * 512)) { in hpfs_map_4sectors() 185 if (likely(qbh->bh[1]->b_data == qbh->bh[0]->b_data + 1 * 512) && in hpfs_get_4sectors() 186 likely(qbh->bh[2]->b_data == qbh->bh[0]->b_data + 2 * 512) && in hpfs_get_4sectors() [all …]
|
H A D | anode.c | 28 brelse(bh); in hpfs_bplus_lookup() 34 brelse(bh); in hpfs_bplus_lookup() 42 brelse(bh); in hpfs_bplus_lookup() 51 brelse(bh); in hpfs_bplus_lookup() 55 brelse(bh); in hpfs_bplus_lookup() 83 brelse(bh); in hpfs_add_sector_to_btree() 90 brelse(bh); in hpfs_add_sector_to_btree() 120 brelse(bh); in hpfs_add_sector_to_btree() 153 bh = bh1; in hpfs_add_sector_to_btree() 162 brelse(bh); in hpfs_add_sector_to_btree() [all …]
|
/openbmc/linux/include/linux/ |
H A D | buffer_head.h | 176 return (unsigned long)(bh)->b_data & (page_size(bh->b_page) - 1); in bh_offset() 222 clean_bdev_aliases(bh->b_bdev, bh->b_blocknr, 1); in clean_bdev_bh_alias() 313 if (bh) in brelse() 314 __brelse(bh); in brelse() 319 if (bh) in bforget() 320 __bforget(bh); in bforget() 363 set_buffer_mapped(bh); in map_bh() 365 bh->b_blocknr = block; in map_bh() 385 __lock_buffer(bh); in lock_buffer() 404 if (!buffer_uptodate(bh) && trylock_buffer(bh)) { in bh_readahead() [all …]
|
/openbmc/linux/fs/nilfs2/ |
H A D | gcinode.c | 66 if (unlikely(!bh)) in nilfs_gccache_submit_read_data() 80 lock_buffer(bh); in nilfs_gccache_submit_read_data() 82 unlock_buffer(bh); in nilfs_gccache_submit_read_data() 90 bh->b_blocknr = pbn; in nilfs_gccache_submit_read_data() 92 get_bh(bh); in nilfs_gccache_submit_read_data() 95 bh->b_blocknr = vbn; in nilfs_gccache_submit_read_data() 98 *out_bh = bh; in nilfs_gccache_submit_read_data() 102 put_page(bh->b_page); in nilfs_gccache_submit_read_data() 104 brelse(bh); in nilfs_gccache_submit_read_data() 141 wait_on_buffer(bh); in nilfs_gccache_wait_and_mark_dirty() [all …]
|
H A D | btnode.c | 53 if (unlikely(!bh)) in nilfs_btnode_create_block() 56 if (unlikely(buffer_mapped(bh) || buffer_uptodate(bh) || in nilfs_btnode_create_block() 58 brelse(bh); in nilfs_btnode_create_block() 69 return bh; in nilfs_btnode_create_block() 88 if (buffer_uptodate(bh) || buffer_dirty(bh)) in nilfs_btnode_submit_block() 100 brelse(bh); in nilfs_btnode_submit_block() 109 brelse(bh); in nilfs_btnode_submit_block() 113 lock_buffer(bh); in nilfs_btnode_submit_block() 124 get_bh(bh); in nilfs_btnode_submit_block() 130 *pbh = bh; in nilfs_btnode_submit_block() [all …]
|
H A D | page.c | 44 return bh; in __nilfs_get_page_block() 67 return bh; in nilfs_grab_buffer() 91 brelse(bh); in nilfs_forget_buffer() 116 bh = dbh; in nilfs_copy_buffer() 118 while ((bh = bh->b_this_page) != dbh) { in nilfs_copy_buffer() 148 bh = bh->b_this_page; in nilfs_page_buffers_clean() 179 i++, bh, atomic_read(&bh->b_count), in nilfs_page_bug() 181 bh = bh->b_this_page; in nilfs_page_bug() 421 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page() 425 } while (bh = bh->b_this_page, bh != head); in nilfs_clear_dirty_page() [all …]
|
H A D | mdt.c | 42 bh->b_blocknr = 0; in nilfs_mdt_insert_new_block() 81 if (unlikely(!bh)) in nilfs_mdt_create_block() 95 get_bh(bh); in nilfs_mdt_create_block() 96 *out_bh = bh; in nilfs_mdt_create_block() 102 brelse(bh); in nilfs_mdt_create_block() 135 lock_buffer(bh); in nilfs_mdt_submit_block() 150 get_bh(bh); in nilfs_mdt_submit_block() 157 get_bh(bh); in nilfs_mdt_submit_block() 158 *out_bh = bh; in nilfs_mdt_submit_block() 163 brelse(bh); in nilfs_mdt_submit_block() [all …]
|
/openbmc/linux/fs/omfs/ |
H A D | dir.c | 45 if (!bh) { in omfs_scan_list() 57 return bh; in omfs_scan_list() 75 if (!bh) in omfs_find_entry() 79 brelse(bh); in omfs_find_entry() 91 if (!bh) in omfs_make_empty() 124 if (!bh) in omfs_add_link() 135 if (!bh) in omfs_add_link() 171 if (!bh) in omfs_delete_entry() 191 if (!bh) in omfs_delete_entry() 225 if (!bh) in omfs_dir_is_empty() [all …]
|
/openbmc/linux/fs/ext2/ |
H A D | xattr.c | 71 #define FIRST_ENTRY(bh) ENTRY(HDR(bh)+1) argument 83 bh->b_bdev, (unsigned long) bh->b_blocknr); \ 222 if (!bh) in ext2_xattr_get() 226 end = bh->b_data + bh->b_size; in ext2_xattr_get() 308 if (!bh) in ext2_xattr_list() 312 end = bh->b_data + bh->b_size; in ext2_xattr_list() 447 if (!bh) in ext2_xattr_set() 453 end = bh->b_data + bh->b_size; in ext2_xattr_set() 634 if (bh && header == HDR(bh)) in ext2_xattr_set() 639 if (bh && header == HDR(bh)) in ext2_xattr_set() [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | symlink.c | 43 if (IS_ERR(bh)) in ext4_encrypted_get_link() 44 return ERR_CAST(bh); in ext4_encrypted_get_link() 45 if (!bh) { in ext4_encrypted_get_link() 49 caddr = bh->b_data; in ext4_encrypted_get_link() 54 brelse(bh); in ext4_encrypted_get_link() 70 brelse(bh); in ext4_free_link() 95 if (IS_ERR(bh)) in ext4_get_link() 97 if (!bh || !ext4_buffer_uptodate(bh)) in ext4_get_link() 101 if (IS_ERR(bh)) in ext4_get_link() 103 if (!bh) { in ext4_get_link() [all …]
|
H A D | page-io.c | 96 bh->b_bdev, in buffer_io_error() 131 bh_offset(bh) + bh->b_size > bio_end) { in ext4_finish_bio() 141 } while ((bh = bh->b_this_page) != head); in ext4_finish_bio() 402 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio() 423 if (!bio_add_folio(io->io_bio, io_folio, bh->b_size, bh_offset(bh))) in io_submit_add_bh() 472 if (!buffer_dirty(bh) || buffer_delay(bh) || in ext4_bio_write_folio() 473 !buffer_mapped(bh) || buffer_unwritten(bh)) { in ext4_bio_write_folio() 486 (buffer_jbd(bh) && buffer_jbddirty(bh))) { in ext4_bio_write_folio() 498 } while ((bh = bh->b_this_page) != head); in ext4_bio_write_folio() 549 bh = bh->b_this_page; in ext4_bio_write_folio() [all …]
|
H A D | mmp.c | 48 lock_buffer(bh); in write_mmp_block_thawed() 50 get_bh(bh); in write_mmp_block_thawed() 52 wait_on_buffer(bh); in write_mmp_block_thawed() 82 if (*bh) in read_mmp_block() 88 if (!*bh) { in read_mmp_block() 90 if (!*bh) { in read_mmp_block() 96 lock_buffer(*bh); in read_mmp_block() 112 brelse(*bh); in read_mmp_block() 113 *bh = NULL; in read_mmp_block() 387 "%pg", bh->b_bdev); in ext4_multi_mount_protect() [all …]
|
/openbmc/linux/fs/affs/ |
H A D | file.c | 103 if (!bh) in affs_grow_extcache() 168 return bh; in affs_get_extblock() 187 bh = affs_alloc_extblock(inode, bh, ext); in affs_get_extblock_slow() 261 if (!bh) in affs_get_extblock_slow() 278 if (!bh) in affs_get_extblock_slow() 287 get_bh(bh); in affs_get_extblock_slow() 289 return bh; in affs_get_extblock_slow() 479 if (bh) { in affs_bread_ino() 498 if (bh) { in affs_getzeroblk_ino() 517 if (bh) { in affs_getemptyblk_ino() [all …]
|
H A D | amigaffs.c | 33 ino = bh->b_blocknr; in affs_insert_hash() 90 if (!bh) in affs_remove_hash() 108 affs_brelse(bh); in affs_remove_hash() 110 if (!bh) in affs_remove_hash() 115 affs_brelse(bh); in affs_remove_hash() 153 if (!bh) in affs_remove_link() 222 if (!bh) in affs_remove_link() 228 affs_brelse(bh); in affs_remove_link() 242 if (!bh) in affs_empty_dir() 251 affs_brelse(bh); in affs_empty_dir() [all …]
|
/openbmc/linux/fs/reiserfs/ |
H A D | prints.c | 152 B_LEVEL(bh), B_NR_ITEMS(bh), B_FREE_SPACE(bh)); in scnprintf_block_head() 159 bh->b_bdev, bh->b_size, in scnprintf_buffer_head() 162 bh->b_state, bh->b_page, in scnprintf_buffer_head() 488 check_leaf(bh); in print_leaf() 616 if (!bh) { in print_block() 740 bh); in check_leaf_block_head() 743 bh); in check_leaf_block_head() 752 if (B_NR_ITEMS(bh) > (bh->b_size - BLKH_SIZE) / IH_SIZE) in check_internal_block_head() 756 bh->b_size - BLKH_SIZE - KEY_SIZE * B_NR_ITEMS(bh) - in check_internal_block_head() 767 if (!bh) in check_leaf() [all …]
|
H A D | resize.c | 26 struct buffer_head *bh; in reiserfs_resize() local 50 if (!bh) { in reiserfs_resize() 54 bforget(bh); in reiserfs_resize() 151 if (!bh) { in reiserfs_resize() 160 mark_buffer_dirty(bh); in reiserfs_resize() 162 sync_dirty_buffer(bh); in reiserfs_resize() 166 brelse(bh); in reiserfs_resize() 185 if (!bh) { in reiserfs_resize() 198 brelse(bh); in reiserfs_resize() 203 if (!bh) { in reiserfs_resize() [all …]
|
/openbmc/linux/fs/minix/ |
H A D | itree_common.c | 7 struct buffer_head *bh; member 15 p->bh = bh; in add_chain() 27 return (block_t *)((char*)bh->b_data + bh->b_size); in block_end() 47 if (!bh) in get_branch() 52 add_chain(++p, bh, (block_t *)bh->b_data + *++offsets); in get_branch() 61 brelse(bh); in get_branch() 89 if (!bh) { in alloc_branch() 95 memset(bh->b_data, 0, bh->b_size); in alloc_branch() 96 branch[n].bh = bh; in alloc_branch() 137 if (where->bh) in splice_branch() [all …]
|
H A D | bitmap.c | 46 struct buffer_head *bh; in minix_free_block() local 61 bh = sbi->s_zmap[zone]; in minix_free_block() 67 mark_buffer_dirty(bh); in minix_free_block() 122 if (!*bh) { in minix_V1_raw_inode() 138 *bh = NULL; in minix_V2_raw_inode() 148 if (!*bh) { in minix_V2_raw_inode() 177 if (bh) { in minix_clear_inode() 179 brelse (bh); in minix_clear_inode() 205 bh = sbi->s_imap[ino]; in minix_free_inode() 226 bh = NULL; in minix_new_inode() [all …]
|
/openbmc/linux/fs/jbd2/ |
H A D | commit.c | 80 __brelse(bh); in release_buffer_page() 87 __brelse(bh); in release_buffer_page() 131 if (!bh) in journal_submit_commit_record() 157 *cbh = bh; in journal_submit_commit_record() 305 addr = kmap_local_folio(bh->b_folio, bh_offset(bh)); in jbd2_checksum_data() 332 addr = kmap_local_folio(bh->b_folio, bh_offset(bh)); in jbd2_block_tag_csum_set() 732 bh); in jbd2_journal_commit_transaction() 829 J_ASSERT_BH(bh, atomic_read(&bh->b_count) == 0); in jbd2_journal_commit_transaction() 836 J_ASSERT_BH(bh, buffer_jbddirty(bh)); in jbd2_journal_commit_transaction() 837 J_ASSERT_BH(bh, !buffer_shadow(bh)); in jbd2_journal_commit_transaction() [all …]
|
/openbmc/linux/fs/sysv/ |
H A D | balloc.c | 79 if (!bh) { in sysv_free_block() 89 brelse(bh); in sysv_free_block() 140 brelse(bh); in sysv_new_block() 146 brelse(bh); in sysv_new_block() 198 if (bh) in sysv_count_free_blocks() 199 brelse(bh); in sysv_count_free_blocks() 205 if (!bh) in sysv_count_free_blocks() 210 if (bh) in sysv_count_free_blocks() 211 brelse(bh); in sysv_count_free_blocks() 227 if (bh) in sysv_count_free_blocks() [all …]
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | f_mass_storage.c | 798 &bh->inreq_busy, &bh->state) in do_read() 905 &bh->outreq_busy, &bh->state) in do_write() 1438 &bh->inreq_busy, &bh->state); in pad_with_zeros() 1483 &bh->outreq_busy, &bh->state) in throw_away_data() 1535 &bh->inreq_busy, &bh->state) in finish_reply() 1545 &bh->inreq_busy, &bh->state) in finish_reply() 1644 &bh->inreq_busy, &bh->state) in send_status() 2123 &bh->outreq_busy, &bh->state) in get_next_command() 2246 bh->inreq->buf = bh->outreq->buf = bh->buf; in do_set_interface() 2247 bh->inreq->context = bh->outreq->context = bh; in do_set_interface() [all …]
|
/openbmc/linux/fs/qnx4/ |
H A D | namei.c | 32 if (bh == NULL) { in qnx4_match() 61 struct buffer_head *bh; in qnx4_find_entry() local 64 bh = NULL; in qnx4_find_entry() 67 if (!bh) { in qnx4_find_entry() 71 if (!bh) { in qnx4_find_entry() 80 return bh; in qnx4_find_entry() 85 brelse(bh); in qnx4_find_entry() 86 bh = NULL; in qnx4_find_entry() 90 brelse(bh); in qnx4_find_entry() 100 struct buffer_head *bh; in qnx4_lookup() local [all …]
|