Lines Matching refs:di_bh

320 			     struct buffer_head *di_bh,  in ocfs2_simple_size_update()  argument
334 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update()
445 struct buffer_head *di_bh, in ocfs2_truncate_file() argument
454 fe = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_truncate_file()
493 status = ocfs2_truncate_inline(inode, di_bh, new_i_size, in ocfs2_truncate_file()
505 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file()
511 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file()
523 status = ocfs2_try_remove_refcount_tree(inode, di_bh); in ocfs2_truncate_file()
724 struct buffer_head *di_bh) in ocfs2_zero_start_ordered_transaction() argument
746 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction()
765 u64 abs_to, struct buffer_head *di_bh) in ocfs2_write_zero_page() argument
773 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_write_zero_page()
779 handle = ocfs2_zero_start_ordered_transaction(inode, di_bh); in ocfs2_write_zero_page()
844 ocfs2_journal_dirty(handle, di_bh); in ocfs2_write_zero_page()
871 struct buffer_head *di_bh, in ocfs2_zero_extend_get_range() argument
924 rc = ocfs2_refcount_cow(inode, di_bh, zero_cpos, in ocfs2_zero_extend_get_range()
945 u64 range_end, struct buffer_head *di_bh) in ocfs2_zero_extend_range() argument
961 rc = ocfs2_write_zero_page(inode, zero_pos, next_pos, di_bh); in ocfs2_zero_extend_range()
978 int ocfs2_zero_extend(struct inode *inode, struct buffer_head *di_bh, in ocfs2_zero_extend() argument
990 ret = ocfs2_zero_extend_get_range(inode, di_bh, zero_start, in ocfs2_zero_extend()
1007 range_end, di_bh); in ocfs2_zero_extend()
1018 int ocfs2_extend_no_holes(struct inode *inode, struct buffer_head *di_bh, in ocfs2_extend_no_holes() argument
1029 BUG_ON(!di_bh && (oi->ip_dyn_features & OCFS2_HAS_REFCOUNT_FL)); in ocfs2_extend_no_holes()
1030 BUG_ON(!di_bh && !(oi->ip_flags & OCFS2_INODE_SYSTEM_FILE)); in ocfs2_extend_no_holes()
1052 ret = ocfs2_zero_extend(inode, di_bh, zero_to); in ocfs2_extend_no_holes()
1061 struct buffer_head *di_bh, in ocfs2_extend_file() argument
1067 BUG_ON(!di_bh); in ocfs2_extend_file()
1091 if (ocfs2_size_fits_inline_data(di_bh, new_i_size)) { in ocfs2_extend_file()
1096 ret = ocfs2_convert_inline_data_to_extents(inode, di_bh); in ocfs2_extend_file()
1105 ret = ocfs2_zero_extend(inode, di_bh, new_i_size); in ocfs2_extend_file()
1107 ret = ocfs2_extend_no_holes(inode, di_bh, new_i_size, in ocfs2_extend_file()
1118 ret = ocfs2_simple_size_update(inode, di_bh, new_i_size); in ocfs2_extend_file()
1428 struct buffer_head *di_bh = NULL; in ocfs2_allocate_unwritten_extents() local
1431 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_allocate_unwritten_extents()
1441 if (ocfs2_size_fits_inline_data(di_bh, end)) in ocfs2_allocate_unwritten_extents()
1444 ret = ocfs2_convert_inline_data_to_extents(inode, di_bh); in ocfs2_allocate_unwritten_extents()
1496 brelse(di_bh); in ocfs2_allocate_unwritten_extents()
1673 struct buffer_head *di_bh, u64 byte_start, in ocfs2_remove_inode_range() argument
1686 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_remove_inode_range()
1689 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_remove_inode_range()
1701 ret = ocfs2_truncate_inline(inode, di_bh, byte_start, in ocfs2_remove_inode_range()
1726 ret = ocfs2_cow_file_pos(inode, di_bh, byte_start); in ocfs2_remove_inode_range()
1732 ret = ocfs2_cow_file_pos(inode, di_bh, byte_start + byte_len); in ocfs2_remove_inode_range()
1846 struct buffer_head *di_bh = NULL; in __ocfs2_change_file_space() local
1864 ret = ocfs2_inode_lock(inode, &di_bh, 1); in __ocfs2_change_file_space()
1910 ret = __ocfs2_write_remove_suid(inode, di_bh); in __ocfs2_change_file_space()
1930 ret = ocfs2_remove_inode_range(inode, di_bh, sr->l_start, in __ocfs2_change_file_space()
1956 ret = ocfs2_mark_inode_dirty(handle, inode, di_bh); in __ocfs2_change_file_space()
1966 brelse(di_bh); in __ocfs2_change_file_space()
2087 struct buffer_head *di_bh = NULL; in ocfs2_prepare_inode_for_refcount() local
2092 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_prepare_inode_for_refcount()
2100 ret = ocfs2_refcount_cow(inode, di_bh, cpos, clusters, UINT_MAX); in ocfs2_prepare_inode_for_refcount()
2104 brelse(di_bh); in ocfs2_prepare_inode_for_refcount()