Lines Matching refs:i_sb
565 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_create_refcount_tree()
613 new_bh = sb_getblk(inode->i_sb, first_blkno); in ocfs2_create_refcount_tree()
630 memset(rb, 0, inode->i_sb->s_blocksize); in ocfs2_create_refcount_tree()
706 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_set_refcount_tree()
768 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_remove_refcount_tree()
2314 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), ref_blkno, &tree); in ocfs2_decrease_refcount()
2357 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_mark_extent_refcounted()
2358 …ret = ocfs2_error(inode->i_sb, "Inode %lu want to use refcount tree, but the feature bit is not se… in ocfs2_mark_extent_refcounted()
2539 u64 start_cpos = ocfs2_blocks_to_clusters(inode->i_sb, phys_blkno); in ocfs2_prepare_refcount_change_for_del()
2541 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_prepare_refcount_change_for_del()
2542 …ret = ocfs2_error(inode->i_sb, "Inode %lu want to use refcount tree, but the feature bit is not se… in ocfs2_prepare_refcount_change_for_del()
2549 ret = ocfs2_get_refcount_tree(OCFS2_SB(inode->i_sb), in ocfs2_prepare_refcount_change_for_del()
2563 ret = ocfs2_calc_refcount_meta_credits(inode->i_sb, in ocfs2_prepare_refcount_change_for_del()
2651 int contig_clusters = ocfs2_cow_contig_clusters(inode->i_sb); in ocfs2_refcount_cal_cow_clusters()
2667 ret = ocfs2_error(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2746 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2779 *cow_start = ocfs2_cow_align_start(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2791 *cow_start = ocfs2_cow_align_start(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2795 want_clusters = ocfs2_cow_align_length(inode->i_sb, in ocfs2_refcount_cal_cow_clusters()
2919 struct super_block *sb = inode->i_sb; in ocfs2_duplicate_clusters_by_page()
3006 struct super_block *sb = inode->i_sb; in ocfs2_duplicate_clusters_by_jbd()
3362 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_replace_cow()
3364 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) { in ocfs2_replace_cow()
3365 …return ocfs2_error(inode->i_sb, "Inode %lu want to use refcount tree, but the feature bit is not s… in ocfs2_replace_cow()
3384 ret = ocfs2_make_clusters_writable(inode->i_sb, context, in ocfs2_replace_cow()
3416 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_refcount_cow_hunk()
3610 *credits += ocfs2_calc_extend_credits(inode->i_sb, in ocfs2_refcounted_xattr_delete_need()
3665 ocfs2_clusters_to_blocks(inode->i_sb, 1) * cow_len; in ocfs2_refcount_cow_xattr()
3696 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_add_refcount_flag()
3699 ret = ocfs2_calc_refcount_meta_credits(inode->i_sb, in ocfs2_add_refcount_flag()
3711 ret = ocfs2_reserve_new_metadata_blocks(OCFS2_SB(inode->i_sb), in ocfs2_add_refcount_flag()
3766 handle = ocfs2_start_trans(OCFS2_SB(inode->i_sb), in ocfs2_change_ctime()
3788 ocfs2_commit_trans(OCFS2_SB(inode->i_sb), handle); in ocfs2_change_ctime()
3800 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_attach_refcount_tree()
3833 clusters = ocfs2_clusters_for_bytes(inode->i_sb, size); in ocfs2_attach_refcount_tree()
3906 struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); in ocfs2_add_refcounted_extent()
3909 ret = ocfs2_lock_refcount_allocators(inode->i_sb, in ocfs2_add_refcounted_extent()
3927 ocfs2_clusters_to_blocks(inode->i_sb, p_cluster), in ocfs2_add_refcounted_extent()
3955 struct ocfs2_super *osb = OCFS2_SB(s_inode->i_sb); in ocfs2_duplicate_inline_data()
4007 clusters = ocfs2_clusters_for_bytes(s_inode->i_sb, size); in ocfs2_duplicate_extent_list()
4055 handle = ocfs2_start_trans(OCFS2_SB(t_inode->i_sb), in ocfs2_complete_reflink()
4110 ocfs2_commit_trans(OCFS2_SB(t_inode->i_sb), handle); in ocfs2_complete_reflink()
4123 struct ocfs2_super *osb = OCFS2_SB(s_inode->i_sb); in ocfs2_create_reflink_node()
4252 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink()
4357 if (dir->i_sb != inode->i_sb) in ocfs2_vfs_reflink()
4413 if (!ocfs2_refcount_tree(OCFS2_SB(inode->i_sb))) in ocfs2_reflink_ioctl()