| /linux/fs/ocfs2/ |
| H A D | acl.c | 115 struct buffer_head *di_bh) in ocfs2_get_acl_nolock() argument 133 retval = ocfs2_xattr_get_nolock(inode, di_bh, name_index, "", NULL, 0); in ocfs2_get_acl_nolock() 138 retval = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_get_acl_nolock() 159 static int ocfs2_acl_set_mode(struct inode *inode, struct buffer_head *di_bh, in ocfs2_acl_set_mode() argument 165 if (di_bh == NULL) { in ocfs2_acl_set_mode() 166 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_acl_set_mode() 172 get_bh(di_bh); in ocfs2_acl_set_mode() 186 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_acl_set_mode() 187 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_acl_set_mode() 201 ocfs2_journal_dirty(handle, di_bh); in ocfs2_acl_set_mode() [all …]
|
| H A D | file.c | 315 struct buffer_head *di_bh, in ocfs2_simple_size_update() argument 329 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update() 440 struct buffer_head *di_bh, in ocfs2_truncate_file() argument 449 fe = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_truncate_file() 489 status = ocfs2_truncate_inline(inode, di_bh, new_i_size, in ocfs2_truncate_file() 501 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file() 510 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file() 522 status = ocfs2_try_remove_refcount_tree(inode, di_bh); in ocfs2_truncate_file() 713 struct buffer_head *di_bh, in ocfs2_zero_start_ordered_transaction() argument 737 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction() [all …]
|
| H A D | mmap.c | 47 struct buffer_head *di_bh, struct folio *folio) in __ocfs2_page_mkwrite() argument 94 &locked_folio, &fsdata, di_bh, folio); 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, folio); in ocfs2_page_mkwrite() 148 brelse(di_bh); in ocfs2_page_mkwrite()
|
| H A D | file.h | 44 struct buffer_head *di_bh, 47 struct buffer_head *di_bh, 49 int ocfs2_extend_no_holes(struct inode *inode, struct buffer_head *di_bh, 51 int ocfs2_zero_extend(struct inode *inode, struct buffer_head *di_bh, 72 struct buffer_head *di_bh, u64 byte_start,
|
| H A 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() 611 struct buffer_head *di_bh = NULL; in ocfs2_get_clusters() local 625 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_clusters() 631 ret = ocfs2_get_clusters_nocache(inode, di_bh, v_cluster, &hole_len, in ocfs2_get_clusters() 660 brelse(di_bh); in ocfs2_get_clusters() 712 static int ocfs2_fiemap_inline(struct inode *inode, struct buffer_head *di_bh, in ocfs2_fiemap_inline() argument 724 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_fiemap_inline() 758 struct buffer_head *di_bh = NULL; in ocfs2_fiemap() local 765 ret = ocfs2_inode_lock(inode, &di_bh, 0); in ocfs2_fiemap() [all …]
|
| H A D | aops.c | 212 struct buffer_head *di_bh) in ocfs2_read_inline_data() argument 215 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_read_inline_data() 243 struct buffer_head *di_bh = NULL; in ocfs2_readpage_inline() local 248 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline() 254 ret = ocfs2_read_inline_data(inode, folio, di_bh); in ocfs2_readpage_inline() 258 brelse(di_bh); in ocfs2_readpage_inline() 821 struct buffer_head *di_bh) in ocfs2_alloc_write_ctxt() argument 834 get_bh(di_bh); in ocfs2_alloc_write_ctxt() 835 wc->w_di_bh = di_bh; in ocfs2_alloc_write_ctxt() 1507 int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size) in ocfs2_size_fits_inline_data() argument [all …]
|
| H A D | dir.c | 414 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_id() local 418 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_id() 424 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id() 427 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id() 430 return di_bh; in ocfs2_find_entry_id() 432 brelse(di_bh); in ocfs2_find_entry_id() 1043 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local 1048 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx() 1054 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx() 1073 brelse(di_bh); in ocfs2_find_entry_dx() [all …]
|
| H A D | aops.h | 37 struct buffer_head *di_bh, struct folio *mmap_folio); 40 struct buffer_head *di_bh); 41 int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size);
|
| H A D | inode.c | 713 struct buffer_head *di_bh, in ocfs2_remove_inode() argument 722 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_remove_inode() 760 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_remove_inode() 769 ocfs2_journal_dirty(handle, di_bh); in ocfs2_remove_inode() 771 ocfs2_remove_from_cache(INODE_CACHE(inode), di_bh); in ocfs2_remove_inode() 827 struct buffer_head *di_bh) in ocfs2_wipe_inode() argument 833 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_wipe_inode() 868 status = ocfs2_truncate_for_delete(osb, inode, di_bh); in ocfs2_wipe_inode() 876 status = ocfs2_dx_dir_truncate(inode, di_bh); in ocfs2_wipe_inode() 884 status = ocfs2_xattr_remove(inode, di_bh); in ocfs2_wipe_inode() [all …]
|
| H A D | move_extents.c | 768 static int __ocfs2_move_extents_range(struct buffer_head *di_bh, in __ocfs2_move_extents_range() argument 776 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in __ocfs2_move_extents_range() 788 ocfs2_init_dinode_extent_tree(&context->et, INODE_CACHE(inode), di_bh); in __ocfs2_move_extents_range() 914 struct buffer_head *di_bh = NULL; in ocfs2_move_extents() local 931 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_move_extents() 942 status = __ocfs2_move_extents_range(di_bh, context); in ocfs2_move_extents() 960 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_move_extents() 967 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_move_extents() 973 ocfs2_journal_dirty(handle, di_bh); in ocfs2_move_extents() 979 brelse(di_bh); in ocfs2_move_extents()
|
| H A 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);
|
| H A D | refcounttree.c | 399 struct buffer_head *di_bh = NULL; in ocfs2_get_refcount_block() local 402 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_refcount_block() 410 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_get_refcount_block() 412 brelse(di_bh); in ocfs2_get_refcount_block() 552 struct buffer_head *di_bh) in ocfs2_create_refcount_tree() argument 557 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_create_refcount_tree() 585 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_create_refcount_tree() 648 ocfs2_journal_dirty(handle, di_bh); in ocfs2_create_refcount_tree() 693 struct buffer_head *di_bh, in ocfs2_set_refcount_tree() argument 698 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_set_refcount_tree() [all …]
|
| H A 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,
|
| H A D | namei.c | 2642 struct buffer_head *di_bh = NULL; in ocfs2_add_inode_to_orphan() local 2647 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_add_inode_to_orphan() 2653 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_add_inode_to_orphan() 2659 status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode)); in ocfs2_add_inode_to_orphan() 2666 status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0); in ocfs2_add_inode_to_orphan() 2690 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan() 2706 brelse(di_bh); in ocfs2_add_inode_to_orphan() 2713 struct inode *inode, struct buffer_head *di_bh, in ocfs2_del_inode_from_orphan() argument 2718 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_del_inode_from_orphan() 2758 di_bh, in ocfs2_del_inode_from_orphan() [all …]
|
| H A D | suballoc.h | 76 struct buffer_head *di_bh, 80 struct buffer_head *di_bh,
|
| H A D | journal.c | 2290 struct buffer_head *di_bh = NULL; in ocfs2_recover_orphans() local 2323 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_recover_orphans() 2329 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_recover_orphans() 2332 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_recover_orphans() 2341 di_bh, 0, 0); in ocfs2_recover_orphans() 2347 brelse(di_bh); in ocfs2_recover_orphans() 2348 di_bh = NULL; in ocfs2_recover_orphans() 2446 struct buffer_head *di_bh = NULL; in ocfs2_check_journals_nolocks() local 2451 ret = ocfs2_read_journal_inode(osb, slot, &di_bh, NULL); in ocfs2_check_journals_nolocks() 2457 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_check_journals_nolocks() [all …]
|
| H A D | xattr.c | 1055 struct buffer_head *di_bh = NULL; in ocfs2_listxattr() local 1065 ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0); in ocfs2_listxattr() 1071 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_listxattr() 1090 brelse(di_bh); in ocfs2_listxattr() 1314 struct buffer_head *di_bh, in ocfs2_xattr_get_nolock() argument 1336 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock() 1337 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_xattr_get_nolock() 1360 struct buffer_head *di_bh = NULL; in ocfs2_xattr_get() local 1363 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 0, &oh); in ocfs2_xattr_get() 1369 ret = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_xattr_get() [all …]
|
| H A D | namei.h | 32 struct inode *inode, struct buffer_head *di_bh,
|
| H A D | extent_map.h | 41 int ocfs2_overwrite_io(struct inode *inode, struct buffer_head *di_bh,
|
| H A D | dir.h | 96 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh);
|
| H A D | alloc.c | 6426 struct buffer_head *di_bh = NULL; in ocfs2_free_cached_blocks() local 6438 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_free_cached_blocks() 6460 ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, in ocfs2_free_cached_blocks() 6474 brelse(di_bh); in ocfs2_free_cached_blocks() 7081 struct buffer_head *di_bh) in ocfs2_convert_inline_data_to_extents() argument 7090 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_convert_inline_data_to_extents() 7114 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents() 7159 ret = ocfs2_read_inline_data(inode, folio, di_bh); in ocfs2_convert_inline_data_to_extents() 7178 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents() 7186 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_convert_inline_data_to_extents() [all …]
|
| H A D | suballoc.c | 1702 struct buffer_head *di_bh, in ocfs2_alloc_dinode_update_counts() argument 1708 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_alloc_dinode_update_counts() 1711 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts() 1721 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts() 1728 struct buffer_head *di_bh, in ocfs2_rollback_alloc_dinode_counts() argument 1733 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_rollback_alloc_dinode_counts()
|