Lines Matching refs:needed_space
1411 static int ocfs2_xa_check_space_helper(int needed_space, int free_start, in ocfs2_xa_check_space_helper() argument
1416 if (!needed_space) in ocfs2_xa_check_space_helper()
1425 if (free_space < needed_space) in ocfs2_xa_check_space_helper()
1592 int needed_space = ocfs2_xi_entry_usage(xi); in ocfs2_xa_block_check_space() local
1602 needed_space = 0; in ocfs2_xa_block_check_space()
1604 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry); in ocfs2_xa_block_check_space()
1606 if (needed_space < 0) in ocfs2_xa_block_check_space()
1607 needed_space = 0; in ocfs2_xa_block_check_space()
1608 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_block_check_space()
1755 int needed_space = ocfs2_xi_entry_usage(xi); in ocfs2_xa_bucket_check_space() local
1768 needed_space = 0; in ocfs2_xa_bucket_check_space()
1770 needed_space -= sizeof(struct ocfs2_xattr_entry); in ocfs2_xa_bucket_check_space()
1772 BUG_ON(needed_space < 0); in ocfs2_xa_bucket_check_space()
1775 if (needed_space) in ocfs2_xa_bucket_check_space()
1784 rc = ocfs2_xa_check_space_helper(needed_space, free_start, in ocfs2_xa_bucket_check_space()
1791 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_bucket_check_space()