Home
last modified time | relevance | path

Searched refs:di_bh (Results 1 – 22 of 22) sorted by relevance

/Linux-v6.1/fs/ocfs2/
Dacl.c114 struct buffer_head *di_bh) in ocfs2_get_acl_nolock() argument
132 retval = ocfs2_xattr_get_nolock(inode, di_bh, name_index, "", NULL, 0); in ocfs2_get_acl_nolock()
137 retval = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_get_acl_nolock()
158 static int ocfs2_acl_set_mode(struct inode *inode, struct buffer_head *di_bh, in ocfs2_acl_set_mode() argument
164 if (di_bh == NULL) { in ocfs2_acl_set_mode()
165 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_acl_set_mode()
171 get_bh(di_bh); in ocfs2_acl_set_mode()
185 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_acl_set_mode()
186 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_acl_set_mode()
200 ocfs2_journal_dirty(handle, di_bh); in ocfs2_acl_set_mode()
[all …]
Dfile.c310 struct buffer_head *di_bh, in ocfs2_simple_size_update() argument
324 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update()
435 struct buffer_head *di_bh, in ocfs2_truncate_file() argument
444 fe = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_truncate_file()
484 status = ocfs2_truncate_inline(inode, di_bh, new_i_size, in ocfs2_truncate_file()
496 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file()
505 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file()
517 status = ocfs2_try_remove_refcount_tree(inode, di_bh); in ocfs2_truncate_file()
708 struct buffer_head *di_bh, in ocfs2_zero_start_ordered_transaction() argument
732 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction()
[all …]
Dfile.h43 struct buffer_head *di_bh,
46 struct buffer_head *di_bh,
48 int ocfs2_extend_no_holes(struct inode *inode, struct buffer_head *di_bh,
50 int ocfs2_zero_extend(struct inode *inode, struct buffer_head *di_bh,
71 struct buffer_head *di_bh, u64 byte_start,
Dmmap.c47 struct buffer_head *di_bh, struct page *page) in __ocfs2_page_mkwrite() argument
94 &locked_page, &fsdata, di_bh, page); in __ocfs2_page_mkwrite()
117 struct buffer_head *di_bh = NULL; in ocfs2_page_mkwrite() local
130 err = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_page_mkwrite()
144 ret = __ocfs2_page_mkwrite(vmf->vma->vm_file, di_bh, page); in ocfs2_page_mkwrite()
148 brelse(di_bh); in ocfs2_page_mkwrite()
Dextent_map.c397 struct buffer_head *di_bh, in ocfs2_get_clusters_nocache() argument
413 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_get_clusters_nocache()
601 struct buffer_head *di_bh = NULL; in ocfs2_get_clusters() local
615 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_clusters()
621 ret = ocfs2_get_clusters_nocache(inode, di_bh, v_cluster, &hole_len, in ocfs2_get_clusters()
650 brelse(di_bh); in ocfs2_get_clusters()
700 static int ocfs2_fiemap_inline(struct inode *inode, struct buffer_head *di_bh, in ocfs2_fiemap_inline() argument
711 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_fiemap_inline()
742 struct buffer_head *di_bh = NULL; in ocfs2_fiemap() local
749 ret = ocfs2_inode_lock(inode, &di_bh, 0); in ocfs2_fiemap()
[all …]
Daops.c220 struct buffer_head *di_bh) in ocfs2_read_inline_data() argument
224 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_read_inline_data()
259 struct buffer_head *di_bh = NULL; in ocfs2_readpage_inline() local
264 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline()
270 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_readpage_inline()
274 brelse(di_bh); in ocfs2_readpage_inline()
840 struct buffer_head *di_bh) in ocfs2_alloc_write_ctxt() argument
853 get_bh(di_bh); in ocfs2_alloc_write_ctxt()
854 wc->w_di_bh = di_bh; in ocfs2_alloc_write_ctxt()
1529 int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size) in ocfs2_size_fits_inline_data() argument
[all …]
Daops.h42 struct buffer_head *di_bh, struct page *mmap_page);
45 struct buffer_head *di_bh);
46 int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size);
Ddir.c395 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_id() local
399 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_id()
405 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id()
408 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id()
411 return di_bh; in ocfs2_find_entry_id()
413 brelse(di_bh); in ocfs2_find_entry_id()
1008 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local
1013 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx()
1019 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx()
1038 brelse(di_bh); in ocfs2_find_entry_dx()
[all …]
Dinode.c635 struct buffer_head *di_bh, in ocfs2_remove_inode() argument
644 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_remove_inode()
682 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_remove_inode()
691 ocfs2_journal_dirty(handle, di_bh); in ocfs2_remove_inode()
693 ocfs2_remove_from_cache(INODE_CACHE(inode), di_bh); in ocfs2_remove_inode()
749 struct buffer_head *di_bh) in ocfs2_wipe_inode() argument
755 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_wipe_inode()
790 status = ocfs2_truncate_for_delete(osb, inode, di_bh); in ocfs2_wipe_inode()
798 status = ocfs2_dx_dir_truncate(inode, di_bh); in ocfs2_wipe_inode()
806 status = ocfs2_xattr_remove(inode, di_bh); in ocfs2_wipe_inode()
[all …]
Drefcounttree.h46 struct buffer_head *di_bh,
95 int ocfs2_remove_refcount_tree(struct inode *inode, struct buffer_head *di_bh);
97 struct buffer_head *di_bh);
Dmove_extents.c767 static int __ocfs2_move_extents_range(struct buffer_head *di_bh, in __ocfs2_move_extents_range() argument
775 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in __ocfs2_move_extents_range()
787 ocfs2_init_dinode_extent_tree(&context->et, INODE_CACHE(inode), di_bh); in __ocfs2_move_extents_range()
908 struct buffer_head *di_bh = NULL; in ocfs2_move_extents() local
925 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_move_extents()
936 status = __ocfs2_move_extents_range(di_bh, context); in ocfs2_move_extents()
954 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_move_extents()
961 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_move_extents()
967 ocfs2_journal_dirty(handle, di_bh); in ocfs2_move_extents()
973 brelse(di_bh); in ocfs2_move_extents()
Drefcounttree.c397 struct buffer_head *di_bh = NULL; in ocfs2_get_refcount_block() local
400 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_refcount_block()
408 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_get_refcount_block()
410 brelse(di_bh); in ocfs2_get_refcount_block()
550 struct buffer_head *di_bh) in ocfs2_create_refcount_tree() argument
555 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_create_refcount_tree()
583 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_create_refcount_tree()
646 ocfs2_journal_dirty(handle, di_bh); in ocfs2_create_refcount_tree()
691 struct buffer_head *di_bh, in ocfs2_set_refcount_tree() argument
696 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_set_refcount_tree()
[all …]
Dalloc.h157 struct buffer_head *di_bh);
219 struct buffer_head *di_bh);
220 int ocfs2_truncate_inline(struct inode *inode, struct buffer_head *di_bh,
Dnamei.c2616 struct buffer_head *di_bh = NULL; in ocfs2_add_inode_to_orphan() local
2621 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_add_inode_to_orphan()
2627 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_add_inode_to_orphan()
2633 status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode)); in ocfs2_add_inode_to_orphan()
2640 status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0); in ocfs2_add_inode_to_orphan()
2664 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan()
2680 brelse(di_bh); in ocfs2_add_inode_to_orphan()
2687 struct inode *inode, struct buffer_head *di_bh, in ocfs2_del_inode_from_orphan() argument
2692 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_del_inode_from_orphan()
2732 di_bh, in ocfs2_del_inode_from_orphan()
[all …]
Dsuballoc.h75 struct buffer_head *di_bh,
79 struct buffer_head *di_bh,
Djournal.c2213 struct buffer_head *di_bh = NULL; in ocfs2_recover_orphans() local
2246 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_recover_orphans()
2252 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_recover_orphans()
2255 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_recover_orphans()
2264 di_bh, 0, 0); in ocfs2_recover_orphans()
2270 brelse(di_bh); in ocfs2_recover_orphans()
2271 di_bh = NULL; in ocfs2_recover_orphans()
2369 struct buffer_head *di_bh = NULL; in ocfs2_check_journals_nolocks() local
2374 ret = ocfs2_read_journal_inode(osb, slot, &di_bh, NULL); in ocfs2_check_journals_nolocks()
2380 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_check_journals_nolocks()
[all …]
Dnamei.h32 struct inode *inode, struct buffer_head *di_bh,
Dxattr.c1029 struct buffer_head *di_bh = NULL; in ocfs2_listxattr() local
1039 ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0); in ocfs2_listxattr()
1045 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_listxattr()
1064 brelse(di_bh); in ocfs2_listxattr()
1279 struct buffer_head *di_bh, in ocfs2_xattr_get_nolock() argument
1301 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock()
1302 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_xattr_get_nolock()
1325 struct buffer_head *di_bh = NULL; in ocfs2_xattr_get() local
1328 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 0, &oh); in ocfs2_xattr_get()
1334 ret = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_xattr_get()
[all …]
Dextent_map.h41 int ocfs2_overwrite_io(struct inode *inode, struct buffer_head *di_bh,
Ddir.h96 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh);
Dalloc.c6394 struct buffer_head *di_bh = NULL; in ocfs2_free_cached_blocks() local
6406 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_free_cached_blocks()
6428 ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, in ocfs2_free_cached_blocks()
6442 brelse(di_bh); in ocfs2_free_cached_blocks()
7053 struct buffer_head *di_bh) in ocfs2_convert_inline_data_to_extents() argument
7062 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_convert_inline_data_to_extents()
7086 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents()
7131 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_convert_inline_data_to_extents()
7150 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents()
7158 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_convert_inline_data_to_extents()
[all …]
Dsuballoc.c1579 struct buffer_head *di_bh, in ocfs2_alloc_dinode_update_counts() argument
1585 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_alloc_dinode_update_counts()
1588 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts()
1598 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts()
1605 struct buffer_head *di_bh, in ocfs2_rollback_alloc_dinode_counts() argument
1610 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_rollback_alloc_dinode_counts()