Home
last modified time | relevance | path

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

/fs/ocfs2/
Dacl.c124 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 …]
Dfile.c324 struct buffer_head *di_bh, in ocfs2_simple_size_update() argument
338 ret = ocfs2_set_inode_size(handle, inode, di_bh, in ocfs2_simple_size_update()
449 struct buffer_head *di_bh, in ocfs2_truncate_file() argument
458 fe = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_truncate_file()
498 status = ocfs2_truncate_inline(inode, di_bh, new_i_size, in ocfs2_truncate_file()
510 status = ocfs2_orphan_for_truncate(osb, inode, di_bh, new_i_size); in ocfs2_truncate_file()
519 status = ocfs2_commit_truncate(osb, inode, di_bh); in ocfs2_truncate_file()
531 status = ocfs2_try_remove_refcount_tree(inode, di_bh); in ocfs2_truncate_file()
732 struct buffer_head *di_bh) in ocfs2_zero_start_ordered_transaction() argument
754 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_zero_start_ordered_transaction()
[all …]
Dmmap.c61 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()
Daops.c223 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()
801 struct buffer_head *di_bh = NULL; in ocfs2_direct_IO_write() local
884 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_direct_IO_write()
891 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_direct_IO_write()
898 brelse(di_bh); in ocfs2_direct_IO_write()
[all …]
Dextent_map.c411 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()
616 struct buffer_head *di_bh = NULL; in ocfs2_get_clusters() local
630 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_clusters()
636 ret = ocfs2_get_clusters_nocache(inode, di_bh, v_cluster, &hole_len, in ocfs2_get_clusters()
665 brelse(di_bh); in ocfs2_get_clusters()
715 static int ocfs2_fiemap_inline(struct inode *inode, struct buffer_head *di_bh, in ocfs2_fiemap_inline() argument
726 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_fiemap_inline()
759 struct buffer_head *di_bh = NULL; in ocfs2_fiemap() local
766 ret = ocfs2_inode_lock(inode, &di_bh, 0); in ocfs2_fiemap()
[all …]
Dfile.h59 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,
Ddir.c414 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()
1027 struct buffer_head *di_bh = NULL; in ocfs2_find_entry_dx() local
1032 ret = ocfs2_read_inode_block(dir, &di_bh); in ocfs2_find_entry_dx()
1038 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_find_entry_dx()
1057 brelse(di_bh); in ocfs2_find_entry_dx()
[all …]
Dinode.c612 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 …]
Daops.h54 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);
Drefcounttree.h56 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);
Dmove_extents.c783 static int __ocfs2_move_extents_range(struct buffer_head *di_bh, in __ocfs2_move_extents_range() argument
791 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in __ocfs2_move_extents_range()
803 ocfs2_init_dinode_extent_tree(&context->et, INODE_CACHE(inode), di_bh); in __ocfs2_move_extents_range()
924 struct buffer_head *di_bh = NULL; in ocfs2_move_extents() local
941 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_move_extents()
952 status = __ocfs2_move_extents_range(di_bh, context); in ocfs2_move_extents()
970 status = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_move_extents()
977 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_move_extents()
983 ocfs2_journal_dirty(handle, di_bh); in ocfs2_move_extents()
989 brelse(di_bh); in ocfs2_move_extents()
Drefcounttree.c404 struct buffer_head *di_bh = NULL; in ocfs2_get_refcount_block() local
407 ret = ocfs2_read_inode_block(inode, &di_bh); in ocfs2_get_refcount_block()
415 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_get_refcount_block()
417 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 …]
Dnamei.c2616 struct buffer_head *di_bh = NULL; in ocfs2_add_inode_to_orphan() local
2621 status = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_add_inode_to_orphan()
2627 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_add_inode_to_orphan()
2633 status = ocfs2_truncate_file(inode, di_bh, i_size_read(inode)); in ocfs2_add_inode_to_orphan()
2640 status = ocfs2_del_inode_from_orphan(osb, inode, di_bh, 0, 0); in ocfs2_add_inode_to_orphan()
2664 status = ocfs2_orphan_add(osb, handle, inode, di_bh, orphan_name, in ocfs2_add_inode_to_orphan()
2680 brelse(di_bh); in ocfs2_add_inode_to_orphan()
2687 struct inode *inode, struct buffer_head *di_bh, in ocfs2_del_inode_from_orphan() argument
2692 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_del_inode_from_orphan()
2732 di_bh, in ocfs2_del_inode_from_orphan()
[all …]
Dalloc.h173 struct buffer_head *di_bh);
233 struct buffer_head *di_bh);
234 int ocfs2_truncate_inline(struct inode *inode, struct buffer_head *di_bh,
Djournal.c2187 struct buffer_head *di_bh = NULL; in ocfs2_recover_orphans() local
2220 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_recover_orphans()
2226 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_recover_orphans()
2229 ret = ocfs2_truncate_file(inode, di_bh, in ocfs2_recover_orphans()
2238 di_bh, 0, 0); in ocfs2_recover_orphans()
2244 brelse(di_bh); in ocfs2_recover_orphans()
2245 di_bh = NULL; in ocfs2_recover_orphans()
2343 struct buffer_head *di_bh = NULL; in ocfs2_check_journals_nolocks() local
2348 ret = ocfs2_read_journal_inode(osb, slot, &di_bh, NULL); in ocfs2_check_journals_nolocks()
2354 di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_check_journals_nolocks()
[all …]
Dsuballoc.h91 struct buffer_head *di_bh,
95 struct buffer_head *di_bh,
Dxattr.c1017 struct buffer_head *di_bh = NULL; in ocfs2_listxattr() local
1027 ret = ocfs2_inode_lock(d_inode(dentry), &di_bh, 0); in ocfs2_listxattr()
1033 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_listxattr()
1052 brelse(di_bh); in ocfs2_listxattr()
1267 struct buffer_head *di_bh, in ocfs2_xattr_get_nolock() argument
1289 xis.inode_bh = xbs.inode_bh = di_bh; in ocfs2_xattr_get_nolock()
1290 di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_xattr_get_nolock()
1313 struct buffer_head *di_bh = NULL; in ocfs2_xattr_get() local
1315 ret = ocfs2_inode_lock(inode, &di_bh, 0); in ocfs2_xattr_get()
1321 ret = ocfs2_xattr_get_nolock(inode, di_bh, name_index, in ocfs2_xattr_get()
[all …]
Dacl.h33 struct buffer_head *di_bh,
Dnamei.h48 struct inode *inode, struct buffer_head *di_bh,
Ddir.h112 int ocfs2_dx_dir_truncate(struct inode *dir, struct buffer_head *di_bh);
Dalloc.c6340 struct buffer_head *di_bh = NULL; in ocfs2_free_cached_blocks() local
6352 ret = ocfs2_inode_lock(inode, &di_bh, 1); in ocfs2_free_cached_blocks()
6374 ret = ocfs2_free_suballoc_bits(handle, inode, di_bh, in ocfs2_free_cached_blocks()
6397 brelse(di_bh); in ocfs2_free_cached_blocks()
6852 struct buffer_head *di_bh) in ocfs2_convert_inline_data_to_extents() argument
6861 struct ocfs2_dinode *di = (struct ocfs2_dinode *)di_bh->b_data; in ocfs2_convert_inline_data_to_extents()
6894 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_convert_inline_data_to_extents()
6945 ret = ocfs2_read_inline_data(inode, pages[0], di_bh); in ocfs2_convert_inline_data_to_extents()
6969 ocfs2_journal_dirty(handle, di_bh); in ocfs2_convert_inline_data_to_extents()
6977 ocfs2_init_dinode_extent_tree(&et, INODE_CACHE(inode), di_bh); in ocfs2_convert_inline_data_to_extents()
[all …]
Dsuballoc.c1569 struct buffer_head *di_bh, in ocfs2_alloc_dinode_update_counts() argument
1575 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_alloc_dinode_update_counts()
1578 ret = ocfs2_journal_access_di(handle, INODE_CACHE(inode), di_bh, in ocfs2_alloc_dinode_update_counts()
1588 ocfs2_journal_dirty(handle, di_bh); in ocfs2_alloc_dinode_update_counts()
1595 struct buffer_head *di_bh, in ocfs2_rollback_alloc_dinode_counts() argument
1600 struct ocfs2_dinode *di = (struct ocfs2_dinode *) di_bh->b_data; in ocfs2_rollback_alloc_dinode_counts()