Lines Matching refs:needed_space
1430 static int ocfs2_xa_check_space_helper(int needed_space, int free_start, in ocfs2_xa_check_space_helper() argument
1435 if (!needed_space) in ocfs2_xa_check_space_helper()
1444 if (free_space < needed_space) in ocfs2_xa_check_space_helper()
1611 int needed_space = ocfs2_xi_entry_usage(xi); in ocfs2_xa_block_check_space() local
1621 needed_space = 0; in ocfs2_xa_block_check_space()
1623 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry); in ocfs2_xa_block_check_space()
1625 if (needed_space < 0) in ocfs2_xa_block_check_space()
1626 needed_space = 0; in ocfs2_xa_block_check_space()
1627 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_block_check_space()
1774 int needed_space = ocfs2_xi_entry_usage(xi); in ocfs2_xa_bucket_check_space() local
1787 needed_space = 0; in ocfs2_xa_bucket_check_space()
1789 needed_space -= sizeof(struct ocfs2_xattr_entry); in ocfs2_xa_bucket_check_space()
1791 BUG_ON(needed_space < 0); in ocfs2_xa_bucket_check_space()
1794 if (needed_space) in ocfs2_xa_bucket_check_space()
1803 rc = ocfs2_xa_check_space_helper(needed_space, free_start, in ocfs2_xa_bucket_check_space()
1810 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_bucket_check_space()