Lines Matching refs:i_sb

567 	struct ocfs2_super *osb = OCFS2_SB(inode->i_sb);  in ocfs2_create_refcount_tree()
615 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree()
632 memset(rb, 0, inode->i_sb->s_blocksize); in ocfs2_create_refcount_tree()
708 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_refcount_tree()
770 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_refcount_tree()
2320 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), ref_blkno, &tree); in ocfs2_decrease_refcount()
2363 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted()
2364 ocfs2_error(inode->i_sb, "Inode %lu want to use refcount " in ocfs2_mark_extent_refcounted()
2547 u64 start_cpos = ocfs2_blocks_to_clusters(inode->i_sb, phys_blkno); in ocfs2_prepare_refcount_change_for_del()
2549 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del()
2550 ocfs2_error(inode->i_sb, "Inode %lu want to use refcount " in ocfs2_prepare_refcount_change_for_del()
2559 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), in ocfs2_prepare_refcount_change_for_del()
2573 ret = ocfs2_calc_refcount_meta_credits(inode->i_sb, in ocfs2_prepare_refcount_change_for_del()
2661 int contig_clusters = ocfs2_cow_contig_clusters(inode->i_sb); in ocfs2_refcount_cal_cow_clusters()
2677 ocfs2_error(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2757 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2790 *cow_start = ocfs2_cow_align_start(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2802 *cow_start = ocfs2_cow_align_start(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2806 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2930 struct super_block *sb = inode->i_sb; in ocfs2_duplicate_clusters_by_page()
3020 struct super_block *sb = inode->i_sb; in ocfs2_duplicate_clusters_by_jbd()
3378 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_replace_cow()
3380 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_replace_cow()
3381 ocfs2_error(inode->i_sb, "Inode %lu want to use refcount " in ocfs2_replace_cow()
3402 ret = ocfs2_make_clusters_writable(inode->i_sb, context, in ocfs2_replace_cow()
3434 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_refcount_cow_hunk()
3628 *credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_refcounted_xattr_delete_need()
3683 ocfs2_clusters_to_blocks(inode->i_sb, 1) * cow_len; in ocfs2_refcount_cow_xattr()
3714 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_add_refcount_flag()
3717 ret = ocfs2_calc_refcount_meta_credits(inode->i_sb, in ocfs2_add_refcount_flag()
3729 ret = ocfs2_reserve_new_metadata_blocks(OCFS2_SB(inode->i_sb), in ocfs2_add_refcount_flag()
3784 handle = ocfs2_start_trans(OCFS2_SB(inode->i_sb), in ocfs2_change_ctime()
3806 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_change_ctime()
3818 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_attach_refcount_tree()
3851 clusters = ocfs2_clusters_for_bytes(inode->i_sb, size); in ocfs2_attach_refcount_tree()
3924 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_add_refcounted_extent()
3927 ret = ocfs2_lock_refcount_allocators(inode->i_sb, in ocfs2_add_refcounted_extent()
3945 ocfs2_clusters_to_blocks(inode->i_sb, p_cluster), in ocfs2_add_refcounted_extent()
3973 struct ocfs2_super *osb = OCFS2_SB(s_inode->i_sb); in ocfs2_duplicate_inline_data()
4025 clusters = ocfs2_clusters_for_bytes(s_inode->i_sb, size); in ocfs2_duplicate_extent_list()
4073 handle = ocfs2_start_trans(OCFS2_SB(t_inode->i_sb), in ocfs2_complete_reflink()
4128 ocfs2_commit_trans(OCFS2_SB(t_inode->i_sb), handle); in ocfs2_complete_reflink()
4141 struct ocfs2_super *osb = OCFS2_SB(s_inode->i_sb); in ocfs2_create_reflink_node()
4270 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink()
4375 if (dir->i_sb != inode->i_sb) in ocfs2_vfs_reflink()
4430 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink_ioctl()