Lines Matching refs:new_clusters
621 int new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, in ocfs2_calc_security_init() local
625 new_clusters); in ocfs2_calc_security_init()
626 *want_clusters += new_clusters; in ocfs2_calc_security_init()
641 int s_size = 0, a_size = 0, acl_len = 0, new_clusters; in ocfs2_calc_xattr_init() local
694 new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, in ocfs2_calc_xattr_init()
697 new_clusters); in ocfs2_calc_xattr_init()
698 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
703 new_clusters = (S_ISDIR(mode) ? 2 : 1) * in ocfs2_calc_xattr_init()
706 new_clusters); in ocfs2_calc_xattr_init()
707 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
824 u32 new_clusters, in ocfs2_xattr_shrink_size() argument
833 if (old_clusters <= new_clusters) in ocfs2_xattr_shrink_size()
836 cpos = new_clusters; in ocfs2_xattr_shrink_size()
837 trunc_len = old_clusters - new_clusters; in ocfs2_xattr_shrink_size()
875 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, len); in ocfs2_xattr_value_truncate() local
878 if (new_clusters == old_clusters) in ocfs2_xattr_value_truncate()
881 if (new_clusters > old_clusters) in ocfs2_xattr_value_truncate()
883 new_clusters - old_clusters, in ocfs2_xattr_value_truncate()
887 old_clusters, new_clusters, in ocfs2_xattr_value_truncate()
1976 unsigned int new_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_cleanup_value_truncate() local
1980 if (new_clusters < orig_clusters) { in ocfs2_xa_cleanup_value_truncate()
1985 orig_clusters - new_clusters); in ocfs2_xa_cleanup_value_truncate()
1993 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
1995 } else if (new_clusters > orig_clusters) in ocfs2_xa_cleanup_value_truncate()
2001 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
3041 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, in ocfs2_calc_xattr_set_need() local
3051 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3058 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3119 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3143 if (old_clusters >= new_clusters) { in ocfs2_calc_xattr_set_need()
3148 clusters_add += new_clusters - old_clusters; in ocfs2_calc_xattr_set_need()