/openbmc/linux/fs/ocfs2/ |
H A 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 …]
|
H A D | file.c | 314 struct buffer_head *di_bh, in ocfs2_simple_size_update() argument 328 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update() 439 struct buffer_head *di_bh, in ocfs2_truncate_file() argument 448 fe = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_truncate_file() 488 status = ocfs2_truncate_inline(inode, di_bh, new_i_size, in ocfs2_truncate_file() 500 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file() 509 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file() 521 status = ocfs2_try_remove_refcount_tree(inode, di_bh); in ocfs2_truncate_file() 712 struct buffer_head *di_bh, in ocfs2_zero_start_ordered_transaction() argument 736 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction() [all …]
|
H A 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,
|
H A 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()
|
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() 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 …]
|
H A D | aops.c | 219 struct buffer_head *di_bh) in ocfs2_read_inline_data() argument 223 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_read_inline_data() 258 struct buffer_head *di_bh = NULL; in ocfs2_readpage_inline() local 263 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline() 269 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_readpage_inline() 273 brelse(di_bh); in ocfs2_readpage_inline() 839 struct buffer_head *di_bh) in ocfs2_alloc_write_ctxt() argument 852 get_bh(di_bh); in ocfs2_alloc_write_ctxt() 853 wc->w_di_bh = di_bh; in ocfs2_alloc_write_ctxt() 1528 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 | 401 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_id() local 405 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_id() 411 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id() 414 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id() 417 return di_bh; in ocfs2_find_entry_id() 419 brelse(di_bh); in ocfs2_find_entry_id() 1014 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local 1019 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx() 1025 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx() 1044 brelse(di_bh); in ocfs2_find_entry_dx() [all …]
|
H A 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);
|
H A 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 …]
|
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 | 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()
|
H A D | refcounttree.c | 398 struct buffer_head *di_bh = NULL; in ocfs2_get_refcount_block() local 401 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_refcount_block() 409 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_get_refcount_block() 411 brelse(di_bh); in ocfs2_get_refcount_block() 551 struct buffer_head *di_bh) in ocfs2_create_refcount_tree() argument 556 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_create_refcount_tree() 584 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_create_refcount_tree() 647 ocfs2_journal_dirty(handle, di_bh); in ocfs2_create_refcount_tree() 692 struct buffer_head *di_bh, in ocfs2_set_refcount_tree() argument 697 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 | 2627 struct buffer_head *di_bh = NULL; in ocfs2_add_inode_to_orphan() local 2632 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_add_inode_to_orphan() 2638 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_add_inode_to_orphan() 2644 status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode)); in ocfs2_add_inode_to_orphan() 2651 status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0); in ocfs2_add_inode_to_orphan() 2675 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan() 2691 brelse(di_bh); in ocfs2_add_inode_to_orphan() 2698 struct inode *inode, struct buffer_head *di_bh, in ocfs2_del_inode_from_orphan() argument 2703 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_del_inode_from_orphan() 2743 di_bh, in ocfs2_del_inode_from_orphan() [all …]
|
H A D | suballoc.h | 75 struct buffer_head *di_bh, 79 struct buffer_head *di_bh,
|
H A D | namei.h | 32 struct inode *inode, struct buffer_head *di_bh,
|
H A D | journal.c | 2264 struct buffer_head *di_bh = NULL; in ocfs2_recover_orphans() local 2297 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_recover_orphans() 2303 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_recover_orphans() 2306 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_recover_orphans() 2315 di_bh, 0, 0); in ocfs2_recover_orphans() 2321 brelse(di_bh); in ocfs2_recover_orphans() 2322 di_bh = NULL; in ocfs2_recover_orphans() 2420 struct buffer_head *di_bh = NULL; in ocfs2_check_journals_nolocks() local 2425 ret = ocfs2_read_journal_inode(osb, slot, &di_bh, NULL); in ocfs2_check_journals_nolocks() 2431 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_check_journals_nolocks() [all …]
|
H A 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() 1284 struct buffer_head *di_bh, in ocfs2_xattr_get_nolock() argument 1306 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock() 1307 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_xattr_get_nolock() 1330 struct buffer_head *di_bh = NULL; in ocfs2_xattr_get() local 1333 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 0, &oh); in ocfs2_xattr_get() 1339 ret = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_xattr_get() [all …]
|
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 | 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 …]
|
H A 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()
|