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