Lines Matching refs:needed_space
1422 static int ocfs2_xa_check_space_helper(int needed_space, int free_start, in ocfs2_xa_check_space_helper() argument
1427 if (!needed_space) in ocfs2_xa_check_space_helper()
1436 if (free_space < needed_space) in ocfs2_xa_check_space_helper()
1603 int needed_space = ocfs2_xi_entry_usage(xi); in ocfs2_xa_block_check_space() local
1613 needed_space = 0; in ocfs2_xa_block_check_space()
1615 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry); in ocfs2_xa_block_check_space()
1617 if (needed_space < 0) in ocfs2_xa_block_check_space()
1618 needed_space = 0; in ocfs2_xa_block_check_space()
1619 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_block_check_space()
1766 int needed_space = ocfs2_xi_entry_usage(xi); in ocfs2_xa_bucket_check_space() local
1779 needed_space = 0; in ocfs2_xa_bucket_check_space()
1781 needed_space -= sizeof(struct ocfs2_xattr_entry); in ocfs2_xa_bucket_check_space()
1783 BUG_ON(needed_space < 0); in ocfs2_xa_bucket_check_space()
1786 if (needed_space) in ocfs2_xa_bucket_check_space()
1795 rc = ocfs2_xa_check_space_helper(needed_space, free_start, in ocfs2_xa_bucket_check_space()
1802 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_bucket_check_space()