/linux-4.1.27/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 | mmap.c | 61 static int __ocfs2_page_mkwrite(struct file *file, struct buffer_head *di_bh, in __ocfs2_page_mkwrite() argument 108 &fsdata, di_bh, page); in __ocfs2_page_mkwrite() 135 struct buffer_head *di_bh = NULL; in ocfs2_page_mkwrite() local 147 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_page_mkwrite() 160 ret = __ocfs2_page_mkwrite(vma->vm_file, di_bh, page); in ocfs2_page_mkwrite() 164 brelse(di_bh); in ocfs2_page_mkwrite()
|
D | file.c | 320 struct buffer_head *di_bh, in ocfs2_simple_size_update() argument 334 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update() 445 struct buffer_head *di_bh, in ocfs2_truncate_file() argument 454 fe = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_truncate_file() 493 status = ocfs2_truncate_inline(inode, di_bh, new_i_size, in ocfs2_truncate_file() 505 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file() 511 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file() 523 status = ocfs2_try_remove_refcount_tree(inode, di_bh); in ocfs2_truncate_file() 724 struct buffer_head *di_bh) in ocfs2_zero_start_ordered_transaction() argument 746 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction() [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,
|
D | extent_map.c | 411 struct buffer_head *di_bh, in ocfs2_get_clusters_nocache() argument 427 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_get_clusters_nocache() 614 struct buffer_head *di_bh = NULL; in ocfs2_get_clusters() local 628 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_clusters() 634 ret = ocfs2_get_clusters_nocache(inode, di_bh, v_cluster, &hole_len, in ocfs2_get_clusters() 663 brelse(di_bh); in ocfs2_get_clusters() 713 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() 757 struct buffer_head *di_bh = NULL; in ocfs2_fiemap() local 764 ret = ocfs2_inode_lock(inode, &di_bh, 0); in ocfs2_fiemap() [all …]
|
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() 1037 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local 1042 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx() 1048 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx() 1067 brelse(di_bh); in ocfs2_find_entry_dx() [all …]
|
D | aops.h | 54 struct buffer_head *di_bh, struct page *mmap_page); 57 struct buffer_head *di_bh); 58 int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size);
|
D | aops.c | 223 struct buffer_head *di_bh) in ocfs2_read_inline_data() argument 227 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_read_inline_data() 262 struct buffer_head *di_bh = NULL; in ocfs2_readpage_inline() local 267 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline() 273 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_readpage_inline() 277 brelse(di_bh); in ocfs2_readpage_inline() 789 struct buffer_head *di_bh = NULL; in ocfs2_direct_IO_write() local 865 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_direct_IO_write() 872 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_direct_IO_write() 879 brelse(di_bh); in ocfs2_direct_IO_write() [all …]
|
D | inode.c | 612 struct buffer_head *di_bh, in ocfs2_remove_inode() argument 621 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_remove_inode() 659 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_remove_inode() 668 ocfs2_journal_dirty(handle, di_bh); in ocfs2_remove_inode() 670 ocfs2_remove_from_cache(INODE_CACHE(inode), di_bh); in ocfs2_remove_inode() 726 struct buffer_head *di_bh) in ocfs2_wipe_inode() argument 732 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_wipe_inode() 767 status = ocfs2_truncate_for_delete(osb, inode, di_bh); in ocfs2_wipe_inode() 775 status = ocfs2_dx_dir_truncate(inode, di_bh); in ocfs2_wipe_inode() 783 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 | 763 static int __ocfs2_move_extents_range(struct buffer_head *di_bh, in __ocfs2_move_extents_range() argument 771 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in __ocfs2_move_extents_range() 783 ocfs2_init_dinode_extent_tree(&context->et, INODE_CACHE(inode), di_bh); in __ocfs2_move_extents_range() 904 struct buffer_head *di_bh = NULL; in ocfs2_move_extents() local 921 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_move_extents() 932 status = __ocfs2_move_extents_range(di_bh, context); in ocfs2_move_extents() 950 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_move_extents() 957 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_move_extents() 963 ocfs2_journal_dirty(handle, di_bh); in ocfs2_move_extents() 969 brelse(di_bh); in ocfs2_move_extents()
|
D | namei.c | 2564 struct buffer_head *di_bh = NULL; in ocfs2_dio_orphan_recovered() local 2567 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_dio_orphan_recovered() 2573 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_dio_orphan_recovered() 2576 brelse(di_bh); in ocfs2_dio_orphan_recovered() 2588 struct buffer_head *di_bh = NULL; in ocfs2_add_inode_to_orphan() local 2594 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_add_inode_to_orphan() 2600 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_add_inode_to_orphan() 2607 brelse(di_bh); in ocfs2_add_inode_to_orphan() 2631 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan() 2647 brelse(di_bh); in ocfs2_add_inode_to_orphan() [all …]
|
D | refcounttree.c | 406 struct buffer_head *di_bh = NULL; in ocfs2_get_refcount_block() local 409 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_refcount_block() 417 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_get_refcount_block() 419 brelse(di_bh); in ocfs2_get_refcount_block() 560 struct buffer_head *di_bh) in ocfs2_create_refcount_tree() argument 565 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_create_refcount_tree() 593 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_create_refcount_tree() 656 ocfs2_journal_dirty(handle, di_bh); in ocfs2_create_refcount_tree() 701 struct buffer_head *di_bh, in ocfs2_set_refcount_tree() argument 706 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_set_refcount_tree() [all …]
|
D | alloc.h | 173 struct buffer_head *di_bh); 233 struct buffer_head *di_bh); 234 int ocfs2_truncate_inline(struct inode *inode, struct buffer_head *di_bh,
|
D | acl.h | 33 struct buffer_head *di_bh,
|
D | suballoc.h | 91 struct buffer_head *di_bh, 95 struct buffer_head *di_bh,
|
D | xattr.c | 1021 struct buffer_head *di_bh = NULL; in ocfs2_listxattr() local 1031 ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0); in ocfs2_listxattr() 1037 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_listxattr() 1056 brelse(di_bh); in ocfs2_listxattr() 1271 struct buffer_head *di_bh, in ocfs2_xattr_get_nolock() argument 1293 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock() 1294 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_xattr_get_nolock() 1317 struct buffer_head *di_bh = NULL; in ocfs2_xattr_get() local 1319 ret = ocfs2_inode_lock(inode, &di_bh, 0); in ocfs2_xattr_get() 1325 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 | journal.c | 2178 struct buffer_head *di_bh = NULL; in ocfs2_recover_orphans() local 2186 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_recover_orphans() 2193 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_recover_orphans() 2197 brelse(di_bh); in ocfs2_recover_orphans() 2295 struct buffer_head *di_bh = NULL; in ocfs2_check_journals_nolocks() local 2300 ret = ocfs2_read_journal_inode(osb, slot, &di_bh, NULL); in ocfs2_check_journals_nolocks() 2306 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_check_journals_nolocks() 2315 brelse(di_bh); in ocfs2_check_journals_nolocks() 2316 di_bh = NULL; in ocfs2_check_journals_nolocks()
|
D | alloc.c | 6322 struct buffer_head *di_bh = NULL; in ocfs2_free_cached_blocks() local 6334 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_free_cached_blocks() 6356 ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, in ocfs2_free_cached_blocks() 6379 brelse(di_bh); in ocfs2_free_cached_blocks() 6834 struct buffer_head *di_bh) in ocfs2_convert_inline_data_to_extents() argument 6843 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_convert_inline_data_to_extents() 6876 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents() 6927 ret = ocfs2_read_inline_data(inode, pages[0], di_bh); in ocfs2_convert_inline_data_to_extents() 6951 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents() 6959 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_convert_inline_data_to_extents() [all …]
|
D | suballoc.c | 1586 struct buffer_head *di_bh, in ocfs2_alloc_dinode_update_counts() argument 1592 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_alloc_dinode_update_counts() 1595 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts() 1605 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts() 1612 struct buffer_head *di_bh, in ocfs2_rollback_alloc_dinode_counts() argument 1617 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_rollback_alloc_dinode_counts()
|