Lines Matching refs:di_bh
312 struct buffer_head *di_bh, in ocfs2_simple_size_update() argument
326 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update()
437 struct buffer_head *di_bh, in ocfs2_truncate_file() argument
446 fe = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_truncate_file()
486 status = ocfs2_truncate_inline(inode, di_bh, new_i_size, in ocfs2_truncate_file()
498 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file()
507 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file()
519 status = ocfs2_try_remove_refcount_tree(inode, di_bh); in ocfs2_truncate_file()
713 struct buffer_head *di_bh, in ocfs2_zero_start_ordered_transaction() argument
737 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction()
756 u64 abs_to, struct buffer_head *di_bh) in ocfs2_write_zero_page() argument
764 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_write_zero_page()
770 handle = ocfs2_zero_start_ordered_transaction(inode, di_bh, in ocfs2_write_zero_page()
837 ocfs2_journal_dirty(handle, di_bh); in ocfs2_write_zero_page()
864 struct buffer_head *di_bh, in ocfs2_zero_extend_get_range() argument
917 rc = ocfs2_refcount_cow(inode, di_bh, zero_cpos, in ocfs2_zero_extend_get_range()
938 u64 range_end, struct buffer_head *di_bh) in ocfs2_zero_extend_range() argument
954 rc = ocfs2_write_zero_page(inode, zero_pos, next_pos, di_bh); in ocfs2_zero_extend_range()
971 int ocfs2_zero_extend(struct inode *inode, struct buffer_head *di_bh, in ocfs2_zero_extend() argument
983 ret = ocfs2_zero_extend_get_range(inode, di_bh, zero_start, in ocfs2_zero_extend()
1000 range_end, di_bh); in ocfs2_zero_extend()
1011 int ocfs2_extend_no_holes(struct inode *inode, struct buffer_head *di_bh, in ocfs2_extend_no_holes() argument
1022 BUG_ON(!di_bh && ocfs2_is_refcount_inode(inode)); in ocfs2_extend_no_holes()
1023 BUG_ON(!di_bh && !(oi->ip_flags & OCFS2_INODE_SYSTEM_FILE)); in ocfs2_extend_no_holes()
1045 ret = ocfs2_zero_extend(inode, di_bh, zero_to); in ocfs2_extend_no_holes()
1054 struct buffer_head *di_bh, in ocfs2_extend_file() argument
1060 BUG_ON(!di_bh); in ocfs2_extend_file()
1084 if (ocfs2_size_fits_inline_data(di_bh, new_i_size)) { in ocfs2_extend_file()
1089 ret = ocfs2_convert_inline_data_to_extents(inode, di_bh); in ocfs2_extend_file()
1098 ret = ocfs2_zero_extend(inode, di_bh, new_i_size); in ocfs2_extend_file()
1100 ret = ocfs2_extend_no_holes(inode, di_bh, new_i_size, in ocfs2_extend_file()
1111 ret = ocfs2_simple_size_update(inode, di_bh, new_i_size); in ocfs2_extend_file()
1443 struct buffer_head *di_bh = NULL; in ocfs2_allocate_unwritten_extents() local
1446 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_allocate_unwritten_extents()
1456 if (ocfs2_size_fits_inline_data(di_bh, end)) in ocfs2_allocate_unwritten_extents()
1459 ret = ocfs2_convert_inline_data_to_extents(inode, di_bh); in ocfs2_allocate_unwritten_extents()
1511 brelse(di_bh); in ocfs2_allocate_unwritten_extents()
1762 struct buffer_head *di_bh, u64 byte_start, in ocfs2_remove_inode_range() argument
1775 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_remove_inode_range()
1778 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_remove_inode_range()
1790 ret = ocfs2_truncate_inline(inode, di_bh, byte_start, in ocfs2_remove_inode_range()
1814 ret = ocfs2_cow_file_pos(inode, di_bh, byte_start); in ocfs2_remove_inode_range()
1820 ret = ocfs2_cow_file_pos(inode, di_bh, byte_start + byte_len); in ocfs2_remove_inode_range()
1934 struct buffer_head *di_bh = NULL; in __ocfs2_change_file_space() local
1952 ret = ocfs2_inode_lock(inode, &di_bh, 1); in __ocfs2_change_file_space()
1998 ret = __ocfs2_write_remove_suid(inode, di_bh); in __ocfs2_change_file_space()
2018 ret = ocfs2_remove_inode_range(inode, di_bh, sr->l_start, in __ocfs2_change_file_space()
2050 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in __ocfs2_change_file_space()
2060 brelse(di_bh); in __ocfs2_change_file_space()
2182 struct buffer_head **di_bh, in ocfs2_inode_lock_for_extent_tree() argument
2190 ret = ocfs2_inode_lock(inode, di_bh, meta_level); in ocfs2_inode_lock_for_extent_tree()
2192 ret = ocfs2_try_inode_lock(inode, di_bh, meta_level); in ocfs2_inode_lock_for_extent_tree()
2216 brelse(*di_bh); in ocfs2_inode_lock_for_extent_tree()
2217 *di_bh = NULL; in ocfs2_inode_lock_for_extent_tree()
2224 struct buffer_head **di_bh, in ocfs2_inode_unlock_for_extent_tree() argument
2233 brelse(*di_bh); in ocfs2_inode_unlock_for_extent_tree()
2234 *di_bh = NULL; in ocfs2_inode_unlock_for_extent_tree()
2247 struct buffer_head *di_bh = NULL; in ocfs2_prepare_inode_for_write() local
2257 &di_bh, in ocfs2_prepare_inode_for_write()
2274 ret = ocfs2_overwrite_io(inode, di_bh, pos, count); in ocfs2_prepare_inode_for_write()
2294 &di_bh, in ocfs2_prepare_inode_for_write()
2311 &di_bh, in ocfs2_prepare_inode_for_write()
2317 &di_bh, in ocfs2_prepare_inode_for_write()
2330 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); in ocfs2_prepare_inode_for_write()
2347 &di_bh, in ocfs2_prepare_inode_for_write()