Home
last modified time | relevance | path

Searched refs:di_bh (Results 1 – 22 of 22) sorted by relevance

/fs/ocfs2/
Dacl.c116 struct buffer_head *di_bh) in ocfs2_get_acl_nolock() argument
134 retval = ocfs2_xattr_get_nolock(inode, di_bh, name_index, "", NULL, 0); in ocfs2_get_acl_nolock()
139 retval = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_get_acl_nolock()
160 static int ocfs2_acl_set_mode(struct inode *inode, struct buffer_head *di_bh, in ocfs2_acl_set_mode() argument
166 if (di_bh == NULL) { in ocfs2_acl_set_mode()
167 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_acl_set_mode()
173 get_bh(di_bh); in ocfs2_acl_set_mode()
187 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_acl_set_mode()
188 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_acl_set_mode()
202 ocfs2_journal_dirty(handle, di_bh); in ocfs2_acl_set_mode()
[all …]
Dfile.c312 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()
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 …]
Dmmap.c49 struct buffer_head *di_bh, struct page *page) in __ocfs2_page_mkwrite() argument
96 &locked_page, &fsdata, di_bh, page); in __ocfs2_page_mkwrite()
119 struct buffer_head *di_bh = NULL; in ocfs2_page_mkwrite() local
132 err = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_page_mkwrite()
146 ret = __ocfs2_page_mkwrite(vmf->vma->vm_file, di_bh, page); in ocfs2_page_mkwrite()
150 brelse(di_bh); in ocfs2_page_mkwrite()
Daops.c222 struct buffer_head *di_bh) in ocfs2_read_inline_data() argument
226 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_read_inline_data()
261 struct buffer_head *di_bh = NULL; in ocfs2_readpage_inline() local
266 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_readpage_inline()
272 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_readpage_inline()
276 brelse(di_bh); in ocfs2_readpage_inline()
844 struct buffer_head *di_bh) in ocfs2_alloc_write_ctxt() argument
857 get_bh(di_bh); in ocfs2_alloc_write_ctxt()
858 wc->w_di_bh = di_bh; in ocfs2_alloc_write_ctxt()
1533 int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size) in ocfs2_size_fits_inline_data() argument
[all …]
Dfile.h45 struct buffer_head *di_bh,
48 struct buffer_head *di_bh,
50 int ocfs2_extend_no_holes(struct inode *inode, struct buffer_head *di_bh,
52 int ocfs2_zero_extend(struct inode *inode, struct buffer_head *di_bh,
70 struct buffer_head *di_bh, u64 byte_start,
Dextent_map.c399 struct buffer_head *di_bh, in ocfs2_get_clusters_nocache() argument
415 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_get_clusters_nocache()
603 struct buffer_head *di_bh = NULL; in ocfs2_get_clusters() local
617 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_clusters()
623 ret = ocfs2_get_clusters_nocache(inode, di_bh, v_cluster, &hole_len, in ocfs2_get_clusters()
652 brelse(di_bh); in ocfs2_get_clusters()
702 static int ocfs2_fiemap_inline(struct inode *inode, struct buffer_head *di_bh, in ocfs2_fiemap_inline() argument
713 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_fiemap_inline()
744 struct buffer_head *di_bh = NULL; in ocfs2_fiemap() local
751 ret = ocfs2_inode_lock(inode, &di_bh, 0); in ocfs2_fiemap()
[all …]
Ddir.c397 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_id() local
401 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_id()
407 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_id()
410 found = ocfs2_search_dirblock(di_bh, dir, name, namelen, 0, in ocfs2_find_entry_id()
413 return di_bh; in ocfs2_find_entry_id()
415 brelse(di_bh); in ocfs2_find_entry_id()
1010 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local
1015 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx()
1021 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx()
1040 brelse(di_bh); in ocfs2_find_entry_dx()
[all …]
Dinode.c637 struct buffer_head *di_bh, in ocfs2_remove_inode() argument
646 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_remove_inode()
684 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_remove_inode()
693 ocfs2_journal_dirty(handle, di_bh); in ocfs2_remove_inode()
695 ocfs2_remove_from_cache(INODE_CACHE(inode), di_bh); in ocfs2_remove_inode()
751 struct buffer_head *di_bh) in ocfs2_wipe_inode() argument
757 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_wipe_inode()
792 status = ocfs2_truncate_for_delete(osb, inode, di_bh); in ocfs2_wipe_inode()
800 status = ocfs2_dx_dir_truncate(inode, di_bh); in ocfs2_wipe_inode()
808 status = ocfs2_xattr_remove(inode, di_bh); in ocfs2_wipe_inode()
[all …]
Daops.h44 struct buffer_head *di_bh, struct page *mmap_page);
47 struct buffer_head *di_bh);
48 int ocfs2_size_fits_inline_data(struct buffer_head *di_bh, u64 new_size);
Dmove_extents.c760 static int __ocfs2_move_extents_range(struct buffer_head *di_bh, in __ocfs2_move_extents_range() argument
768 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in __ocfs2_move_extents_range()
780 ocfs2_init_dinode_extent_tree(&context->et, INODE_CACHE(inode), di_bh); in __ocfs2_move_extents_range()
901 struct buffer_head *di_bh = NULL; in ocfs2_move_extents() local
918 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_move_extents()
929 status = __ocfs2_move_extents_range(di_bh, context); in ocfs2_move_extents()
947 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_move_extents()
954 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_move_extents()
960 ocfs2_journal_dirty(handle, di_bh); in ocfs2_move_extents()
966 brelse(di_bh); in ocfs2_move_extents()
Drefcounttree.h48 struct buffer_head *di_bh,
97 int ocfs2_remove_refcount_tree(struct inode *inode, struct buffer_head *di_bh);
99 struct buffer_head *di_bh);
Drefcounttree.c399 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 …]
Dnamei.c2618 struct buffer_head *di_bh = NULL; in ocfs2_add_inode_to_orphan() local
2623 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_add_inode_to_orphan()
2629 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_add_inode_to_orphan()
2635 status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode)); in ocfs2_add_inode_to_orphan()
2642 status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0); in ocfs2_add_inode_to_orphan()
2666 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan()
2682 brelse(di_bh); in ocfs2_add_inode_to_orphan()
2689 struct inode *inode, struct buffer_head *di_bh, in ocfs2_del_inode_from_orphan() argument
2694 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_del_inode_from_orphan()
2734 di_bh, in ocfs2_del_inode_from_orphan()
[all …]
Dalloc.h159 struct buffer_head *di_bh);
221 struct buffer_head *di_bh);
222 int ocfs2_truncate_inline(struct inode *inode, struct buffer_head *di_bh,
Djournal.c2191 struct buffer_head *di_bh = NULL; in ocfs2_recover_orphans() local
2224 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_recover_orphans()
2230 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_recover_orphans()
2233 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_recover_orphans()
2242 di_bh, 0, 0); in ocfs2_recover_orphans()
2248 brelse(di_bh); in ocfs2_recover_orphans()
2249 di_bh = NULL; in ocfs2_recover_orphans()
2347 struct buffer_head *di_bh = NULL; in ocfs2_check_journals_nolocks() local
2352 ret = ocfs2_read_journal_inode(osb, slot, &di_bh, NULL); in ocfs2_check_journals_nolocks()
2358 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_check_journals_nolocks()
[all …]
Dsuballoc.h77 struct buffer_head *di_bh,
81 struct buffer_head *di_bh,
Dxattr.c1031 struct buffer_head *di_bh = NULL; in ocfs2_listxattr() local
1041 ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0); in ocfs2_listxattr()
1047 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_listxattr()
1066 brelse(di_bh); in ocfs2_listxattr()
1281 struct buffer_head *di_bh, in ocfs2_xattr_get_nolock() argument
1303 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock()
1304 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_xattr_get_nolock()
1327 struct buffer_head *di_bh = NULL; in ocfs2_xattr_get() local
1330 had_lock = ocfs2_inode_lock_tracker(inode, &di_bh, 0, &oh); in ocfs2_xattr_get()
1336 ret = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_xattr_get()
[all …]
Dnamei.h34 struct inode *inode, struct buffer_head *di_bh,
Dextent_map.h43 int ocfs2_overwrite_io(struct inode *inode, struct buffer_head *di_bh,
Ddir.h98 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh);
Dalloc.c6394 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()
7048 struct buffer_head *di_bh) in ocfs2_convert_inline_data_to_extents() argument
7057 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_convert_inline_data_to_extents()
7081 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents()
7126 ret = ocfs2_read_inline_data(inode, page, di_bh); in ocfs2_convert_inline_data_to_extents()
7145 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents()
7153 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_convert_inline_data_to_extents()
[all …]
Dsuballoc.c1581 struct buffer_head *di_bh, in ocfs2_alloc_dinode_update_counts() argument
1587 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_alloc_dinode_update_counts()
1590 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts()
1600 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts()
1607 struct buffer_head *di_bh, in ocfs2_rollback_alloc_dinode_counts() argument
1612 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_rollback_alloc_dinode_counts()