/linux/fs/ |
A D | buffer.c | 110 bh = bh->b_this_page; in buffer_check_dirty_writeback() 219 bh = bh->b_this_page; in __find_get_block_slow() 329 ctx->bh = bh; in end_buffer_async_read_io() 631 bh = bh->b_this_page; in __set_page_dirty_buffers() 872 bh = bh->b_this_page; in link_dev_buffers() 914 bh = bh->b_this_page; in init_page_buffers() 1565 bh = bh->b_this_page; in create_empty_buffers() 1772 bh = bh->b_this_page; in __block_write_full_page() 1912 bh = bh->b_this_page; in page_zero_new_buffers() 2089 bh = bh->b_this_page; in __block_commit_write() [all …]
|
/linux/fs/ocfs2/ |
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 …]
|
/linux/fs/gfs2/ |
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() 150 for (bh = page_buffers(page); bufnum--; bh = bh->b_this_page) in gfs2_getbuf() 161 return bh; in gfs2_getbuf() 189 return bh; in gfs2_meta_new() 203 bh = bh->b_this_page; in gfs2_meta_read_endio() 207 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() 424 for (bh = page_buffers(page); bufnum--; bh = bh->b_this_page) in gfs2_getjdatabuf() [all …]
|
/linux/fs/hpfs/ |
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 …]
|
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 …]
|
/linux/fs/nilfs2/ |
A D | gcinode.c | 66 if (unlikely(!bh)) in nilfs_gccache_submit_read_data() 77 brelse(bh); in nilfs_gccache_submit_read_data() 82 lock_buffer(bh); in nilfs_gccache_submit_read_data() 84 unlock_buffer(bh); in nilfs_gccache_submit_read_data() 92 bh->b_blocknr = pbn; in nilfs_gccache_submit_read_data() 94 get_bh(bh); in nilfs_gccache_submit_read_data() 97 bh->b_blocknr = vbn; in nilfs_gccache_submit_read_data() 100 *out_bh = bh; in nilfs_gccache_submit_read_data() 104 put_page(bh->b_page); in nilfs_gccache_submit_read_data() 141 wait_on_buffer(bh); in nilfs_gccache_wait_and_mark_dirty() [all …]
|
A D | btnode.c | 36 if (unlikely(!bh)) in nilfs_btnode_create_block() 39 if (unlikely(buffer_mapped(bh) || buffer_uptodate(bh) || in nilfs_btnode_create_block() 41 brelse(bh); in nilfs_btnode_create_block() 52 return bh; in nilfs_btnode_create_block() 71 if (buffer_uptodate(bh) || buffer_dirty(bh)) in nilfs_btnode_submit_block() 83 brelse(bh); in nilfs_btnode_submit_block() 92 brelse(bh); in nilfs_btnode_submit_block() 96 lock_buffer(bh); in nilfs_btnode_submit_block() 107 get_bh(bh); in nilfs_btnode_submit_block() 113 *pbh = bh; in nilfs_btnode_submit_block() [all …]
|
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() 412 (u64)bh->b_blocknr, bh->b_size); in nilfs_clear_dirty_page() 416 } while (bh = bh->b_this_page, bh != head); in nilfs_clear_dirty_page() [all …]
|
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() 156 get_bh(bh); in nilfs_mdt_submit_block() 157 *out_bh = bh; in nilfs_mdt_submit_block() 162 brelse(bh); in nilfs_mdt_submit_block() [all …]
|
/linux/include/linux/ |
A D | buffer_head.h | 138 #define bh_offset(bh) ((unsigned long)(bh)->b_data & ~PAGE_MASK) argument 179 clean_bdev_aliases(bh->b_bdev, bh->b_blocknr, 1); in clean_bdev_bh_alias() 290 if (bh) in brelse() 291 __brelse(bh); in brelse() 296 if (bh) in bforget() 297 __bforget(bh); in bforget() 346 set_buffer_mapped(bh); in map_bh() 348 bh->b_blocknr = block; in map_bh() 355 if (buffer_locked(bh)) in wait_on_buffer() 356 __wait_on_buffer(bh); in wait_on_buffer() [all …]
|
/linux/fs/omfs/ |
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 …]
|
/linux/fs/affs/ |
A D | file.c | 102 if (!bh) in affs_grow_extcache() 167 return bh; in affs_get_extblock() 186 bh = affs_alloc_extblock(inode, bh, ext); in affs_get_extblock_slow() 260 if (!bh) in affs_get_extblock_slow() 277 if (!bh) in affs_get_extblock_slow() 286 get_bh(bh); in affs_get_extblock_slow() 288 return bh; in affs_get_extblock_slow() 475 if (bh) { in affs_bread_ino() 494 if (bh) { in affs_getzeroblk_ino() 513 if (bh) { in affs_getemptyblk_ino() [all …]
|
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 …]
|
A D | affs.h | 21 #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 …]
|
/linux/fs/ext2/ |
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() 448 if (!bh) in ext2_xattr_set() 454 end = bh->b_data + bh->b_size; in ext2_xattr_set() 635 if (bh && header == HDR(bh)) in ext2_xattr_set() 640 if (bh && header == HDR(bh)) in ext2_xattr_set() [all …]
|
/linux/fs/reiserfs/ |
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() 459 to = last < B_NR_ITEMS(bh) ? last : B_NR_ITEMS(bh); in print_internal() 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 …]
|
/linux/fs/minix/ |
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 …]
|
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() 228 bh = NULL; in minix_new_inode() [all …]
|
/linux/fs/jbd2/ |
A D | commit.c | 46 unlock_buffer(bh); in journal_end_buffer_io_sync() 82 __brelse(bh); in release_buffer_page() 89 __brelse(bh); in release_buffer_page() 133 if (!bh) in journal_submit_commit_record() 161 *cbh = bh; in journal_submit_commit_record() 337 (void *)(addr + offset_in_page(bh->b_data)), bh->b_size); in jbd2_checksum_data() 872 J_ASSERT_BH(bh, atomic_read(&bh->b_count) == 0); in jbd2_journal_commit_transaction() 879 J_ASSERT_BH(bh, buffer_jbddirty(bh)); in jbd2_journal_commit_transaction() 880 J_ASSERT_BH(bh, !buffer_shadow(bh)); in jbd2_journal_commit_transaction() 983 get_bh(bh); in jbd2_journal_commit_transaction() [all …]
|
A D | recovery.c | 95 if (!bh) { in do_readahead() 100 if (!buffer_uptodate(bh) && !buffer_locked(bh)) { in do_readahead() 108 brelse(bh); in do_readahead() 151 if (!bh) in jread() 165 brelse(bh); in jread() 169 *bhp = bh; in jread() 539 brelse(bh); in do_one_pass() 549 brelse(bh); in do_one_pass() 705 brelse(bh); in do_one_pass() 817 brelse(bh); in do_one_pass() [all …]
|
/linux/fs/ext4/ |
A D | indirect.c | 40 p->bh = bh; in add_chain() 167 put_bh(bh); in ext4_get_branch() 172 put_bh(bh); in ext4_get_branch() 177 add_chain(++p, bh, (__le32 *)bh->b_data + *++offsets); in ext4_get_branch() 223 if (ind->bh) in ext4_find_near() 364 memset(bh->b_data, 0, bh->b_size); in ext4_alloc_branch() 431 if (where->bh) { in ext4_splice_branch() 686 if (bh) { in ext4_ind_trunc_restart_fn() 731 if (bh) { in ext4_ind_truncate_ensure_credits() 1038 brelse(bh); in ext4_free_branches() [all …]
|
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() 139 } while ((bh = bh->b_this_page) != head); in ext4_finish_bio() 403 bio->bi_iter.bi_sector = bh->b_blocknr * (bh->b_size >> 9); in io_submit_init_bio() 428 ret = bio_add_page(io->io_bio, page, bh->b_size, bh_offset(bh)); in io_submit_add_bh() 484 if (!buffer_dirty(bh) || buffer_delay(bh) || in ext4_bio_write_page() 485 !buffer_mapped(bh) || buffer_unwritten(bh)) { in ext4_bio_write_page() 493 if (buffer_new(bh)) in ext4_bio_write_page() 497 } while ((bh = bh->b_this_page) != head); in ext4_bio_write_page() 539 bh = bh->b_this_page; in ext4_bio_write_page() [all …]
|
A D | ext4_jbd2.c | 183 if (bh) in ext4_journal_abort_handle() 275 bforget(bh); in __ext4_forget() 286 if (bh) { in __ext4_forget() 304 bh, handle, err); in __ext4_forget() 344 set_buffer_meta(bh); in __ext4_handle_dirty_metadata() 345 set_buffer_prio(bh); in __ext4_handle_dirty_metadata() 346 set_buffer_uptodate(bh); in __ext4_handle_dirty_metadata() 364 bh->b_blocknr, in __ext4_handle_dirty_metadata() 378 mark_buffer_dirty(bh); in __ext4_handle_dirty_metadata() 380 sync_dirty_buffer(bh); in __ext4_handle_dirty_metadata() [all …]
|
/linux/fs/ntfs/ |
A D | aops.c | 98 tmp = bh; in ntfs_end_buffer_async_read() 199 BUG_ON(!bh); in ntfs_read_block() 792 } while (block++, (bh = bh->b_this_page) != head); in ntfs_write_block() 799 bh = head; in ntfs_write_block() 810 } while ((bh = bh->b_this_page) != head); in ntfs_write_block() 817 if (buffer_mapped(bh) && buffer_dirty(bh)) { in ntfs_write_block() 832 } while ((bh = bh->b_this_page) != head); in ntfs_write_block() 863 bh = next; in ntfs_write_block() 1095 } while (block++, (bh = bh->b_this_page) != head); in ntfs_write_mst_block() 1732 bh = bh->b_this_page; in mark_ntfs_record_dirty() [all …]
|
/linux/fs/sysv/ |
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 …]
|