/Linux-v4.19/fs/ocfs2/ |
D | acl.c | 124 struct buffer_head *di_bh) in ocfs2_get_acl_nolock() argument 142 retval = ocfs2_xattr_get_nolock(inode, di_bh, name_index, "", NULL, 0); in ocfs2_get_acl_nolock() 147 retval = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_get_acl_nolock() 168 static int ocfs2_acl_set_mode(struct inode *inode, struct buffer_head *di_bh, in ocfs2_acl_set_mode() argument 174 if (di_bh == NULL) { in ocfs2_acl_set_mode() 175 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_acl_set_mode() 181 get_bh(di_bh); in ocfs2_acl_set_mode() 195 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_acl_set_mode() 196 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_acl_set_mode() 210 ocfs2_journal_dirty(handle, di_bh); in ocfs2_acl_set_mode() [all …]
|
D | file.h | 59 struct buffer_head *di_bh, 62 struct buffer_head *di_bh, 64 int ocfs2_extend_no_holes(struct inode *inode, struct buffer_head *di_bh, 66 int ocfs2_zero_extend(struct inode *inode, struct buffer_head *di_bh, 84 struct buffer_head *di_bh, u64 byte_start,
|
D | file.c | 326 struct buffer_head *di_bh, in ocfs2_simple_size_update() argument 340 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update() 451 struct buffer_head *di_bh, in ocfs2_truncate_file() argument 460 fe = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_truncate_file() 499 status = ocfs2_truncate_inline(inode, di_bh, new_i_size, in ocfs2_truncate_file() 511 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file() 517 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file() 529 status = ocfs2_try_remove_refcount_tree(inode, di_bh); in ocfs2_truncate_file() 723 struct buffer_head *di_bh) in ocfs2_zero_start_ordered_transaction() argument 745 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction() [all …]
|
D | mmap.c | 63 struct buffer_head *di_bh, struct page *page) in __ocfs2_page_mkwrite() argument 110 &locked_page, &fsdata, di_bh, page); in __ocfs2_page_mkwrite() 133 struct buffer_head *di_bh = NULL; in ocfs2_page_mkwrite() local 146 err = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_page_mkwrite() 160 ret = __ocfs2_page_mkwrite(vmf->vma->vm_file, di_bh, page); in ocfs2_page_mkwrite() 164 brelse(di_bh); in ocfs2_page_mkwrite()
|
D | extent_map.c | 412 struct buffer_head *di_bh, in ocfs2_get_clusters_nocache() argument 428 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_get_clusters_nocache() 617 struct buffer_head *di_bh = NULL; in ocfs2_get_clusters() local 631 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_clusters() 637 ret = ocfs2_get_clusters_nocache(inode, di_bh, v_cluster, &hole_len, in ocfs2_get_clusters() 666 brelse(di_bh); in ocfs2_get_clusters() 716 static int ocfs2_fiemap_inline(struct inode *inode, struct buffer_head *di_bh, in ocfs2_fiemap_inline() argument 727 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_fiemap_inline() 760 struct buffer_head *di_bh = NULL; in ocfs2_fiemap() local 767 ret = ocfs2_inode_lock(inode, &di_bh, 0); in ocfs2_fiemap() [all …]
|
D | aops.c | 236 struct buffer_head *di_bh) in ocfs2_read_inline_data() argument 240 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_read_inline_data() 275 struct buffer_head *di_bh = NULL; in ocfs2_readpage_inline() local 280 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline() 286 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_readpage_inline() 290 brelse(di_bh); in ocfs2_readpage_inline() 866 struct buffer_head *di_bh) in ocfs2_alloc_write_ctxt() argument 879 get_bh(di_bh); in ocfs2_alloc_write_ctxt() 880 wc->w_di_bh = di_bh; in ocfs2_alloc_write_ctxt() 1555 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 | 58 struct buffer_head *di_bh, struct page *mmap_page); 61 struct buffer_head *di_bh); 62 int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size);
|
D | dir.c | 415 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_id() local 419 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_id() 425 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id() 428 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id() 431 return di_bh; in ocfs2_find_entry_id() 433 brelse(di_bh); in ocfs2_find_entry_id() 1028 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local 1033 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx() 1039 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx() 1058 brelse(di_bh); in ocfs2_find_entry_dx() [all …]
|
D | inode.c | 651 struct buffer_head *di_bh, in ocfs2_remove_inode() argument 660 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_remove_inode() 698 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_remove_inode() 707 ocfs2_journal_dirty(handle, di_bh); in ocfs2_remove_inode() 709 ocfs2_remove_from_cache(INODE_CACHE(inode), di_bh); in ocfs2_remove_inode() 765 struct buffer_head *di_bh) in ocfs2_wipe_inode() argument 771 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_wipe_inode() 806 status = ocfs2_truncate_for_delete(osb, inode, di_bh); in ocfs2_wipe_inode() 814 status = ocfs2_dx_dir_truncate(inode, di_bh); in ocfs2_wipe_inode() 822 status = ocfs2_xattr_remove(inode, di_bh); in ocfs2_wipe_inode() [all …]
|
D | refcounttree.h | 56 struct buffer_head *di_bh, 105 int ocfs2_remove_refcount_tree(struct inode *inode, struct buffer_head *di_bh); 107 struct buffer_head *di_bh);
|
D | move_extents.c | 755 static int __ocfs2_move_extents_range(struct buffer_head *di_bh, in __ocfs2_move_extents_range() argument 763 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in __ocfs2_move_extents_range() 775 ocfs2_init_dinode_extent_tree(&context->et, INODE_CACHE(inode), di_bh); in __ocfs2_move_extents_range() 896 struct buffer_head *di_bh = NULL; in ocfs2_move_extents() local 913 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_move_extents() 924 status = __ocfs2_move_extents_range(di_bh, context); in ocfs2_move_extents() 942 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_move_extents() 949 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_move_extents() 955 ocfs2_journal_dirty(handle, di_bh); in ocfs2_move_extents() 961 brelse(di_bh); in ocfs2_move_extents()
|
D | alloc.h | 173 struct buffer_head *di_bh); 235 struct buffer_head *di_bh); 236 int ocfs2_truncate_inline(struct inode *inode, struct buffer_head *di_bh,
|
D | refcounttree.c | 405 struct buffer_head *di_bh = NULL; in ocfs2_get_refcount_block() local 408 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_refcount_block() 416 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_get_refcount_block() 418 brelse(di_bh); in ocfs2_get_refcount_block() 558 struct buffer_head *di_bh) in ocfs2_create_refcount_tree() argument 563 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_create_refcount_tree() 591 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_create_refcount_tree() 654 ocfs2_journal_dirty(handle, di_bh); in ocfs2_create_refcount_tree() 699 struct buffer_head *di_bh, in ocfs2_set_refcount_tree() argument 704 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_set_refcount_tree() [all …]
|
D | namei.c | 2622 struct buffer_head *di_bh = NULL; in ocfs2_add_inode_to_orphan() local 2627 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_add_inode_to_orphan() 2633 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_add_inode_to_orphan() 2639 status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode)); in ocfs2_add_inode_to_orphan() 2646 status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0); in ocfs2_add_inode_to_orphan() 2670 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan() 2686 brelse(di_bh); in ocfs2_add_inode_to_orphan() 2693 struct inode *inode, struct buffer_head *di_bh, in ocfs2_del_inode_from_orphan() argument 2698 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_del_inode_from_orphan() 2738 di_bh, in ocfs2_del_inode_from_orphan() [all …]
|
D | namei.h | 48 struct inode *inode, struct buffer_head *di_bh,
|
D | suballoc.h | 91 struct buffer_head *di_bh, 95 struct buffer_head *di_bh,
|
D | journal.c | 2177 struct buffer_head *di_bh = NULL; in ocfs2_recover_orphans() local 2210 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_recover_orphans() 2216 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_recover_orphans() 2219 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_recover_orphans() 2228 di_bh, 0, 0); in ocfs2_recover_orphans() 2234 brelse(di_bh); in ocfs2_recover_orphans() 2235 di_bh = NULL; in ocfs2_recover_orphans() 2333 struct buffer_head *di_bh = NULL; in ocfs2_check_journals_nolocks() local 2338 ret = ocfs2_read_journal_inode(osb, slot, &di_bh, NULL); in ocfs2_check_journals_nolocks() 2344 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_check_journals_nolocks() [all …]
|
D | extent_map.h | 56 int ocfs2_overwrite_io(struct inode *inode, struct buffer_head *di_bh,
|
D | xattr.c | 1039 struct buffer_head *di_bh = NULL; in ocfs2_listxattr() local 1049 ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0); in ocfs2_listxattr() 1055 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_listxattr() 1074 brelse(di_bh); in ocfs2_listxattr() 1289 struct buffer_head *di_bh, in ocfs2_xattr_get_nolock() argument 1311 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock() 1312 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_xattr_get_nolock() 1335 struct buffer_head *di_bh = NULL; in ocfs2_xattr_get() local 1338 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 0, &oh); in ocfs2_xattr_get() 1344 ret = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_xattr_get() [all …]
|
D | dir.h | 112 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh);
|
D | alloc.c | 6398 struct buffer_head *di_bh = NULL; in ocfs2_free_cached_blocks() local 6410 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_free_cached_blocks() 6432 ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, in ocfs2_free_cached_blocks() 6446 brelse(di_bh); in ocfs2_free_cached_blocks() 7049 struct buffer_head *di_bh) in ocfs2_convert_inline_data_to_extents() argument 7058 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_convert_inline_data_to_extents() 7091 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents() 7142 ret = ocfs2_read_inline_data(inode, pages[0], di_bh); in ocfs2_convert_inline_data_to_extents() 7166 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents() 7174 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_convert_inline_data_to_extents() [all …]
|
D | suballoc.c | 1592 struct buffer_head *di_bh, in ocfs2_alloc_dinode_update_counts() argument 1598 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_alloc_dinode_update_counts() 1601 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts() 1611 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts() 1618 struct buffer_head *di_bh, in ocfs2_rollback_alloc_dinode_counts() argument 1623 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_rollback_alloc_dinode_counts()
|