Lines Matching refs:new_clusters
604 int new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, in ocfs2_calc_security_init() local
608 new_clusters); in ocfs2_calc_security_init()
609 *want_clusters += new_clusters; in ocfs2_calc_security_init()
624 int s_size = 0, a_size = 0, acl_len = 0, new_clusters; in ocfs2_calc_xattr_init() local
680 new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, in ocfs2_calc_xattr_init()
683 new_clusters); in ocfs2_calc_xattr_init()
684 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
689 new_clusters = (S_ISDIR(mode) ? 2 : 1) * in ocfs2_calc_xattr_init()
692 new_clusters); in ocfs2_calc_xattr_init()
693 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
810 u32 new_clusters, in ocfs2_xattr_shrink_size() argument
819 if (old_clusters <= new_clusters) in ocfs2_xattr_shrink_size()
822 cpos = new_clusters; in ocfs2_xattr_shrink_size()
823 trunc_len = old_clusters - new_clusters; in ocfs2_xattr_shrink_size()
861 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, len); in ocfs2_xattr_value_truncate() local
864 if (new_clusters == old_clusters) in ocfs2_xattr_value_truncate()
867 if (new_clusters > old_clusters) in ocfs2_xattr_value_truncate()
869 new_clusters - old_clusters, in ocfs2_xattr_value_truncate()
873 old_clusters, new_clusters, in ocfs2_xattr_value_truncate()
1985 unsigned int new_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_cleanup_value_truncate() local
1989 if (new_clusters < orig_clusters) { in ocfs2_xa_cleanup_value_truncate()
1994 orig_clusters - new_clusters); in ocfs2_xa_cleanup_value_truncate()
2002 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
2004 } else if (new_clusters > orig_clusters) in ocfs2_xa_cleanup_value_truncate()
2010 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
3050 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, in ocfs2_calc_xattr_set_need() local
3060 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3067 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3128 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3152 if (old_clusters >= new_clusters) { in ocfs2_calc_xattr_set_need()
3157 clusters_add += new_clusters - old_clusters; in ocfs2_calc_xattr_set_need()