/Linux-v6.6/fs/ocfs2/ |
D | acl.c | 114 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 …]
|
D | file.c | 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() 710 struct buffer_head *di_bh, in ocfs2_zero_start_ordered_transaction() argument 734 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction() [all …]
|
D | file.h | 43 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,
|
D | mmap.c | 47 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()
|
D | extent_map.c | 397 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 …]
|
D | aops.c | 220 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 …]
|
D | aops.h | 42 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);
|
D | dir.c | 395 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 …]
|
D | inode.c | 635 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 …]
|
D | refcounttree.h | 46 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);
|
D | move_extents.c | 758 static int __ocfs2_move_extents_range(struct buffer_head *di_bh, in __ocfs2_move_extents_range() argument 766 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in __ocfs2_move_extents_range() 778 ocfs2_init_dinode_extent_tree(&context->et, INODE_CACHE(inode), di_bh); in __ocfs2_move_extents_range() 899 struct buffer_head *di_bh = NULL; in ocfs2_move_extents() local 916 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_move_extents() 927 status = __ocfs2_move_extents_range(di_bh, context); in ocfs2_move_extents() 945 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_move_extents() 952 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_move_extents() 958 ocfs2_journal_dirty(handle, di_bh); in ocfs2_move_extents() 964 brelse(di_bh); in ocfs2_move_extents()
|
D | refcounttree.c | 397 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 …]
|
D | alloc.h | 157 struct buffer_head *di_bh); 219 struct buffer_head *di_bh); 220 int ocfs2_truncate_inline(struct inode *inode, struct buffer_head *di_bh,
|
D | namei.c | 2623 struct buffer_head *di_bh = NULL; in ocfs2_add_inode_to_orphan() local 2628 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_add_inode_to_orphan() 2634 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_add_inode_to_orphan() 2640 status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode)); in ocfs2_add_inode_to_orphan() 2647 status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0); in ocfs2_add_inode_to_orphan() 2671 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan() 2687 brelse(di_bh); in ocfs2_add_inode_to_orphan() 2694 struct inode *inode, struct buffer_head *di_bh, in ocfs2_del_inode_from_orphan() argument 2699 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_del_inode_from_orphan() 2739 di_bh, in ocfs2_del_inode_from_orphan() [all …]
|
D | suballoc.h | 75 struct buffer_head *di_bh, 79 struct buffer_head *di_bh,
|
D | journal.c | 2224 struct buffer_head *di_bh = NULL; in ocfs2_recover_orphans() local 2257 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_recover_orphans() 2263 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_recover_orphans() 2266 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_recover_orphans() 2275 di_bh, 0, 0); in ocfs2_recover_orphans() 2281 brelse(di_bh); in ocfs2_recover_orphans() 2282 di_bh = NULL; in ocfs2_recover_orphans() 2380 struct buffer_head *di_bh = NULL; in ocfs2_check_journals_nolocks() local 2385 ret = ocfs2_read_journal_inode(osb, slot, &di_bh, NULL); in ocfs2_check_journals_nolocks() 2391 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_check_journals_nolocks() [all …]
|
D | namei.h | 32 struct inode *inode, struct buffer_head *di_bh,
|
D | xattr.c | 1025 struct buffer_head *di_bh = NULL; in ocfs2_listxattr() local 1035 ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0); in ocfs2_listxattr() 1041 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_listxattr() 1060 brelse(di_bh); in ocfs2_listxattr() 1275 struct buffer_head *di_bh, in ocfs2_xattr_get_nolock() argument 1297 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock() 1298 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_xattr_get_nolock() 1321 struct buffer_head *di_bh = NULL; in ocfs2_xattr_get() local 1324 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 0, &oh); in ocfs2_xattr_get() 1330 ret = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_xattr_get() [all …]
|
D | extent_map.h | 41 int ocfs2_overwrite_io(struct inode *inode, struct buffer_head *di_bh,
|
D | dir.h | 96 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh);
|
D | alloc.c | 6394 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 …]
|
D | suballoc.c | 1579 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()
|