Lines Matching refs:bh_result

286 			       struct buffer_head *bh_result, int args)  in _get_block_create_0()  argument
309 kunmap(bh_result->b_page); in _get_block_create_0()
318 && !PageUptodate(bh_result->b_page)) { in _get_block_create_0()
337 map_bh(bh_result, inode->i_sb, blocknr); in _get_block_create_0()
340 set_buffer_boundary(bh_result); in _get_block_create_0()
350 && !PageUptodate(bh_result->b_page)) { in _get_block_create_0()
356 kunmap(bh_result->b_page); in _get_block_create_0()
367 kunmap(bh_result->b_page); in _get_block_create_0()
376 if (buffer_uptodate(bh_result)) { in _get_block_create_0()
385 if (!bh_result->b_page || PageUptodate(bh_result->b_page)) { in _get_block_create_0()
386 set_buffer_uptodate(bh_result); in _get_block_create_0()
400 p = (char *)kmap(bh_result->b_page); in _get_block_create_0()
450 flush_dcache_page(bh_result->b_page); in _get_block_create_0()
451 kunmap(bh_result->b_page); in _get_block_create_0()
463 map_bh(bh_result, inode->i_sb, 0); in _get_block_create_0()
464 set_buffer_uptodate(bh_result); in _get_block_create_0()
473 struct buffer_head *bh_result, int create) in reiserfs_bmap() argument
480 _get_block_create_0(inode, block, bh_result, 0); in reiserfs_bmap()
504 struct buffer_head *bh_result, in reiserfs_get_block_create_0() argument
507 return reiserfs_get_block(inode, block, bh_result, GET_BLOCK_NO_HOLE); in reiserfs_get_block_create_0()
516 struct buffer_head *bh_result, in reiserfs_get_blocks_direct_io() argument
521 bh_result->b_page = NULL; in reiserfs_get_blocks_direct_io()
528 bh_result->b_size = i_blocksize(inode); in reiserfs_get_blocks_direct_io()
530 ret = reiserfs_get_block(inode, iblock, bh_result, in reiserfs_get_blocks_direct_io()
536 if (buffer_mapped(bh_result) && bh_result->b_blocknr == 0) { in reiserfs_get_blocks_direct_io()
541 clear_buffer_mapped(bh_result); in reiserfs_get_blocks_direct_io()
577 struct buffer_head *bh_result, in convert_tail_for_hole() argument
584 struct page *hole_page = bh_result->b_page; in convert_tail_for_hole()
587 if ((tail_offset & (bh_result->b_size - 1)) != 1) in convert_tail_for_hole()
592 tail_end = (tail_start | (bh_result->b_size - 1)) + 1; in convert_tail_for_hole()
658 struct buffer_head *bh_result, int create) in reiserfs_get_block() argument
703 ret = _get_block_create_0(inode, block, bh_result, in reiserfs_get_block()
814 set_buffer_new(bh_result); in reiserfs_get_block()
815 if (buffer_dirty(bh_result) in reiserfs_get_block()
817 reiserfs_add_ordered_list(inode, bh_result); in reiserfs_get_block()
823 set_block_dev_mapped(bh_result, unfm_ptr, inode); in reiserfs_get_block()
866 set_block_dev_mapped(bh_result, in reiserfs_get_block()
868 set_buffer_new(bh_result); in reiserfs_get_block()
901 set_block_dev_mapped(bh_result, in reiserfs_get_block()
903 unbh = bh_result; in reiserfs_get_block()
929 convert_tail_for_hole(inode, bh_result, in reiserfs_get_block()
1062 set_block_dev_mapped(bh_result, in reiserfs_get_block()
1064 set_buffer_new(bh_result); in reiserfs_get_block()
2185 struct buffer_head **bh_result) in grab_tail_page() argument
2246 *bh_result = bh; in grab_tail_page()
2366 struct buffer_head *bh_result, in map_block_for_writepage() argument
2392 if (!buffer_uptodate(bh_result)) { in map_block_for_writepage()
2396 kmap(bh_result->b_page); in map_block_for_writepage()
2424 set_block_dev_mapped(bh_result, in map_block_for_writepage()
2428 p = page_address(bh_result->b_page); in map_block_for_writepage()
2463 set_block_dev_mapped(bh_result, 0, inode); in map_block_for_writepage()
2466 if (bytes_copied < bh_result->b_size && in map_block_for_writepage()
2493 retval = reiserfs_get_block(inode, block, bh_result, in map_block_for_writepage()
2497 if (!buffer_mapped(bh_result) in map_block_for_writepage()
2498 || bh_result->b_blocknr == 0) { in map_block_for_writepage()
2505 kunmap(bh_result->b_page); in map_block_for_writepage()
2507 if (!retval && buffer_mapped(bh_result) && bh_result->b_blocknr == 0) { in map_block_for_writepage()
2512 lock_buffer(bh_result); in map_block_for_writepage()
2513 clear_buffer_dirty(bh_result); in map_block_for_writepage()
2514 unlock_buffer(bh_result); in map_block_for_writepage()