Lines Matching refs:bh_result
285 struct buffer_head *bh_result, int args) in _get_block_create_0() argument
308 kunmap(bh_result->b_page); in _get_block_create_0()
317 && !PageUptodate(bh_result->b_page)) { in _get_block_create_0()
336 map_bh(bh_result, inode->i_sb, blocknr); in _get_block_create_0()
339 set_buffer_boundary(bh_result); in _get_block_create_0()
349 && !PageUptodate(bh_result->b_page)) { in _get_block_create_0()
355 kunmap(bh_result->b_page); in _get_block_create_0()
366 kunmap(bh_result->b_page); in _get_block_create_0()
375 if (buffer_uptodate(bh_result)) { in _get_block_create_0()
384 if (!bh_result->b_page || PageUptodate(bh_result->b_page)) { in _get_block_create_0()
385 set_buffer_uptodate(bh_result); in _get_block_create_0()
399 p = (char *)kmap(bh_result->b_page); in _get_block_create_0()
449 flush_dcache_page(bh_result->b_page); in _get_block_create_0()
450 kunmap(bh_result->b_page); in _get_block_create_0()
462 map_bh(bh_result, inode->i_sb, 0); in _get_block_create_0()
463 set_buffer_uptodate(bh_result); in _get_block_create_0()
472 struct buffer_head *bh_result, int create) in reiserfs_bmap() argument
479 _get_block_create_0(inode, block, bh_result, 0); in reiserfs_bmap()
503 struct buffer_head *bh_result, in reiserfs_get_block_create_0() argument
506 return reiserfs_get_block(inode, block, bh_result, GET_BLOCK_NO_HOLE); in reiserfs_get_block_create_0()
515 struct buffer_head *bh_result, in reiserfs_get_blocks_direct_io() argument
520 bh_result->b_page = NULL; in reiserfs_get_blocks_direct_io()
527 bh_result->b_size = (1 << inode->i_blkbits); in reiserfs_get_blocks_direct_io()
529 ret = reiserfs_get_block(inode, iblock, bh_result, in reiserfs_get_blocks_direct_io()
535 if (buffer_mapped(bh_result) && bh_result->b_blocknr == 0) { in reiserfs_get_blocks_direct_io()
540 clear_buffer_mapped(bh_result); in reiserfs_get_blocks_direct_io()
576 struct buffer_head *bh_result, in convert_tail_for_hole() argument
583 struct page *hole_page = bh_result->b_page; in convert_tail_for_hole()
586 if ((tail_offset & (bh_result->b_size - 1)) != 1) in convert_tail_for_hole()
591 tail_end = (tail_start | (bh_result->b_size - 1)) + 1; in convert_tail_for_hole()
657 struct buffer_head *bh_result, int create) in reiserfs_get_block() argument
702 ret = _get_block_create_0(inode, block, bh_result, in reiserfs_get_block()
813 set_buffer_new(bh_result); in reiserfs_get_block()
814 if (buffer_dirty(bh_result) in reiserfs_get_block()
816 reiserfs_add_ordered_list(inode, bh_result); in reiserfs_get_block()
822 set_block_dev_mapped(bh_result, unfm_ptr, inode); in reiserfs_get_block()
865 set_block_dev_mapped(bh_result, in reiserfs_get_block()
867 set_buffer_new(bh_result); in reiserfs_get_block()
900 set_block_dev_mapped(bh_result, in reiserfs_get_block()
902 unbh = bh_result; in reiserfs_get_block()
928 convert_tail_for_hole(inode, bh_result, in reiserfs_get_block()
1060 set_block_dev_mapped(bh_result, in reiserfs_get_block()
1062 set_buffer_new(bh_result); in reiserfs_get_block()
2184 struct buffer_head **bh_result) in grab_tail_page() argument
2245 *bh_result = bh; in grab_tail_page()
2365 struct buffer_head *bh_result, in map_block_for_writepage() argument
2391 if (!buffer_uptodate(bh_result)) { in map_block_for_writepage()
2395 kmap(bh_result->b_page); in map_block_for_writepage()
2423 set_block_dev_mapped(bh_result, in map_block_for_writepage()
2427 p = page_address(bh_result->b_page); in map_block_for_writepage()
2462 set_block_dev_mapped(bh_result, 0, inode); in map_block_for_writepage()
2465 if (bytes_copied < bh_result->b_size && in map_block_for_writepage()
2492 retval = reiserfs_get_block(inode, block, bh_result, in map_block_for_writepage()
2496 if (!buffer_mapped(bh_result) in map_block_for_writepage()
2497 || bh_result->b_blocknr == 0) { in map_block_for_writepage()
2504 kunmap(bh_result->b_page); in map_block_for_writepage()
2506 if (!retval && buffer_mapped(bh_result) && bh_result->b_blocknr == 0) { in map_block_for_writepage()
2511 lock_buffer(bh_result); in map_block_for_writepage()
2512 clear_buffer_dirty(bh_result); in map_block_for_writepage()
2513 unlock_buffer(bh_result); in map_block_for_writepage()