Lines Matching refs:new_clusters
615 int new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, in ocfs2_calc_security_init() local
619 new_clusters); in ocfs2_calc_security_init()
620 *want_clusters += new_clusters; in ocfs2_calc_security_init()
635 int s_size = 0, a_size = 0, acl_len = 0, new_clusters; in ocfs2_calc_xattr_init() local
688 new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, in ocfs2_calc_xattr_init()
691 new_clusters); in ocfs2_calc_xattr_init()
692 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
697 new_clusters = (S_ISDIR(mode) ? 2 : 1) * in ocfs2_calc_xattr_init()
700 new_clusters); in ocfs2_calc_xattr_init()
701 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
818 u32 new_clusters, in ocfs2_xattr_shrink_size() argument
827 if (old_clusters <= new_clusters) in ocfs2_xattr_shrink_size()
830 cpos = new_clusters; in ocfs2_xattr_shrink_size()
831 trunc_len = old_clusters - new_clusters; in ocfs2_xattr_shrink_size()
869 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, len); in ocfs2_xattr_value_truncate() local
872 if (new_clusters == old_clusters) in ocfs2_xattr_value_truncate()
875 if (new_clusters > old_clusters) in ocfs2_xattr_value_truncate()
877 new_clusters - old_clusters, in ocfs2_xattr_value_truncate()
881 old_clusters, new_clusters, in ocfs2_xattr_value_truncate()
1970 unsigned int new_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_cleanup_value_truncate() local
1974 if (new_clusters < orig_clusters) { in ocfs2_xa_cleanup_value_truncate()
1979 orig_clusters - new_clusters); in ocfs2_xa_cleanup_value_truncate()
1987 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
1989 } else if (new_clusters > orig_clusters) in ocfs2_xa_cleanup_value_truncate()
1995 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
3035 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, in ocfs2_calc_xattr_set_need() local
3045 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3052 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3113 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3137 if (old_clusters >= new_clusters) { in ocfs2_calc_xattr_set_need()
3142 clusters_add += new_clusters - old_clusters; in ocfs2_calc_xattr_set_need()