Lines Matching refs:needed_space
1416 static int ocfs2_xa_check_space_helper(int needed_space, int free_start,
1421 if (!needed_space)
1430 if (free_space < needed_space)
1597 int needed_space = ocfs2_xi_entry_usage(xi);
1607 needed_space = 0;
1609 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry);
1611 if (needed_space < 0)
1612 needed_space = 0;
1613 return ocfs2_xa_check_space_helper(needed_space, free_start, count);
1760 int needed_space = ocfs2_xi_entry_usage(xi);
1773 needed_space = 0;
1775 needed_space -= sizeof(struct ocfs2_xattr_entry);
1777 BUG_ON(needed_space < 0);
1780 if (needed_space)
1789 rc = ocfs2_xa_check_space_helper(needed_space, free_start,
1796 return ocfs2_xa_check_space_helper(needed_space, free_start, count);