Lines Matching refs:bh
36 lb_addr eloc, int8_t etype, uint32_t elen, struct buffer_head *bh, uint32_t nelen) in extent_trunc() argument
56 udf_write_aext(inode, bloc, &extoffset, neloc, nelen, bh, 0); in extent_trunc()
74 struct buffer_head *bh = NULL; in udf_truncate_extents() local
84 etype = inode_bmap(inode, first_block, &bloc, &extoffset, &eloc, &elen, &offset, &bh); in udf_truncate_extents()
89 extent_trunc(inode, bloc, extoffset, eloc, etype, elen, bh, offset); in udf_truncate_extents()
102 while ((etype = udf_current_aext(inode, &bloc, &extoffset, &eloc, &elen, &bh, 0)) != -1) in udf_truncate_extents()
106 udf_write_aext(inode, bloc, &extoffset, neloc, nelen, bh, 0); in udf_truncate_extents()
111 memset(bh->b_data, 0x00, udf_file_entry_alloc_offset(inode)); in udf_truncate_extents()
113 memset(bh->b_data, 0x00, sizeof(struct allocExtDesc)); in udf_truncate_extents()
125 struct allocExtDesc *aed = (struct allocExtDesc *)(bh->b_data); in udf_truncate_extents()
128 udf_update_tag(bh->b_data, lenalloc + in udf_truncate_extents()
131 udf_update_tag(bh->b_data, sizeof(struct allocExtDesc)); in udf_truncate_extents()
132 mark_buffer_dirty_inode(bh, inode); in udf_truncate_extents()
136 udf_release_data(bh); in udf_truncate_extents()
137 bh = NULL; in udf_truncate_extents()
148 extent_trunc(inode, bloc, extoffset, eloc, etype, elen, bh, 0); in udf_truncate_extents()
156 memset(bh->b_data, 0x00, udf_file_entry_alloc_offset(inode)); in udf_truncate_extents()
158 memset(bh->b_data, 0x00, sizeof(struct allocExtDesc)); in udf_truncate_extents()
170 struct allocExtDesc *aed = (struct allocExtDesc *)(bh->b_data); in udf_truncate_extents()
173 udf_update_tag(bh->b_data, lenalloc + in udf_truncate_extents()
176 udf_update_tag(bh->b_data, sizeof(struct allocExtDesc)); in udf_truncate_extents()
177 mark_buffer_dirty_inode(bh, inode); in udf_truncate_extents()
190 if ((!bh && extoffset == udf_file_entry_alloc_offset(inode)) || in udf_truncate_extents()
191 (bh && extoffset == sizeof(struct allocExtDesc))) { in udf_truncate_extents()
195 udf_add_aext(inode, &bloc, &extoffset, eloc, elen, &bh, 1); in udf_truncate_extents()
199 etype = udf_next_aext(inode, &bloc, &extoffset, &eloc, &elen, &bh, 1); in udf_truncate_extents()
204 udf_write_aext(inode, bloc, &extoffset, eloc, elen, bh, 0); in udf_truncate_extents()
213 udf_write_aext(inode, bloc, &extoffset, neloc, nelen, bh, 1); in udf_truncate_extents()
214 udf_add_aext(inode, &bloc, &extoffset, eloc, (etype << 30) | elen, &bh, 1); in udf_truncate_extents()
224 udf_write_aext(inode, bloc, &extoffset, eloc, elen, bh, 1); in udf_truncate_extents()
228 udf_add_aext(inode, &bloc, &extoffset, eloc, elen, &bh, 1); in udf_truncate_extents()
235 udf_release_data(bh); in udf_truncate_extents()