Lines Matching refs:new_clusters

614 		int new_clusters = ocfs2_clusters_for_bytes(dir->i_sb,  in ocfs2_calc_security_init()  local
618 new_clusters); in ocfs2_calc_security_init()
619 *want_clusters += new_clusters; in ocfs2_calc_security_init()
634 int s_size = 0, a_size = 0, acl_len = 0, new_clusters; in ocfs2_calc_xattr_init() local
690 new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, in ocfs2_calc_xattr_init()
693 new_clusters); in ocfs2_calc_xattr_init()
694 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
699 new_clusters = (S_ISDIR(mode) ? 2 : 1) * in ocfs2_calc_xattr_init()
702 new_clusters); in ocfs2_calc_xattr_init()
703 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
820 u32 new_clusters, in ocfs2_xattr_shrink_size() argument
829 if (old_clusters <= new_clusters) in ocfs2_xattr_shrink_size()
832 cpos = new_clusters; in ocfs2_xattr_shrink_size()
833 trunc_len = old_clusters - new_clusters; in ocfs2_xattr_shrink_size()
871 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, len); in ocfs2_xattr_value_truncate() local
874 if (new_clusters == old_clusters) in ocfs2_xattr_value_truncate()
877 if (new_clusters > old_clusters) in ocfs2_xattr_value_truncate()
879 new_clusters - old_clusters, in ocfs2_xattr_value_truncate()
883 old_clusters, new_clusters, in ocfs2_xattr_value_truncate()
1995 unsigned int new_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_cleanup_value_truncate() local
1999 if (new_clusters < orig_clusters) { in ocfs2_xa_cleanup_value_truncate()
2004 orig_clusters - new_clusters); in ocfs2_xa_cleanup_value_truncate()
2012 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
2014 } else if (new_clusters > orig_clusters) in ocfs2_xa_cleanup_value_truncate()
2020 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
3060 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, in ocfs2_calc_xattr_set_need() local
3070 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3077 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3138 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3162 if (old_clusters >= new_clusters) { in ocfs2_calc_xattr_set_need()
3167 clusters_add += new_clusters - old_clusters; in ocfs2_calc_xattr_set_need()