Lines Matching refs:new_clusters

600 		int new_clusters = ocfs2_clusters_for_bytes(dir->i_sb,  in ocfs2_calc_security_init()  local
604 new_clusters); in ocfs2_calc_security_init()
605 *want_clusters += new_clusters; in ocfs2_calc_security_init()
620 int s_size = 0, a_size = 0, acl_len = 0, new_clusters; in ocfs2_calc_xattr_init() local
676 new_clusters = ocfs2_clusters_for_bytes(dir->i_sb, in ocfs2_calc_xattr_init()
679 new_clusters); in ocfs2_calc_xattr_init()
680 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
685 new_clusters = (S_ISDIR(mode) ? 2 : 1) * in ocfs2_calc_xattr_init()
688 new_clusters); in ocfs2_calc_xattr_init()
689 *want_clusters += new_clusters; in ocfs2_calc_xattr_init()
806 u32 new_clusters, in ocfs2_xattr_shrink_size() argument
815 if (old_clusters <= new_clusters) in ocfs2_xattr_shrink_size()
818 cpos = new_clusters; in ocfs2_xattr_shrink_size()
819 trunc_len = old_clusters - new_clusters; in ocfs2_xattr_shrink_size()
857 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, len); in ocfs2_xattr_value_truncate() local
860 if (new_clusters == old_clusters) in ocfs2_xattr_value_truncate()
863 if (new_clusters > old_clusters) in ocfs2_xattr_value_truncate()
865 new_clusters - old_clusters, in ocfs2_xattr_value_truncate()
869 old_clusters, new_clusters, in ocfs2_xattr_value_truncate()
1990 unsigned int new_clusters = ocfs2_xa_value_clusters(loc); in ocfs2_xa_cleanup_value_truncate() local
1994 if (new_clusters < orig_clusters) { in ocfs2_xa_cleanup_value_truncate()
1999 orig_clusters - new_clusters); in ocfs2_xa_cleanup_value_truncate()
2007 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
2009 } else if (new_clusters > orig_clusters) in ocfs2_xa_cleanup_value_truncate()
2015 new_clusters - orig_clusters); in ocfs2_xa_cleanup_value_truncate()
3054 u32 new_clusters = ocfs2_clusters_for_bytes(inode->i_sb, in ocfs2_calc_xattr_set_need() local
3064 credits += new_clusters * in ocfs2_calc_xattr_set_need()
3071 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3132 clusters_add += new_clusters; in ocfs2_calc_xattr_set_need()
3156 if (old_clusters >= new_clusters) { in ocfs2_calc_xattr_set_need()
3161 clusters_add += new_clusters - old_clusters; in ocfs2_calc_xattr_set_need()