Lines Matching refs:free_start
1416 static int ocfs2_xa_check_space_helper(int needed_space, int free_start, in ocfs2_xa_check_space_helper() argument
1424 free_space = free_start - in ocfs2_xa_check_space_helper()
1581 int offset, free_start = loc->xl_size; in ocfs2_xa_block_get_free_start() local
1585 if (offset < free_start) in ocfs2_xa_block_get_free_start()
1586 free_start = offset; in ocfs2_xa_block_get_free_start()
1589 return free_start; in ocfs2_xa_block_get_free_start()
1596 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_block_check_space() local
1613 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_block_check_space()
1662 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_block_add_namevalue() local
1664 loc->xl_entry->xe_name_offset = cpu_to_le16(free_start - size); in ocfs2_xa_block_add_namevalue()
1741 int free_start, int size) in ocfs2_bucket_align_free_start() argument
1747 if (((free_start - size) >> sb->s_blocksize_bits) != in ocfs2_bucket_align_free_start()
1748 ((free_start - 1) >> sb->s_blocksize_bits)) in ocfs2_bucket_align_free_start()
1749 free_start -= free_start % sb->s_blocksize; in ocfs2_bucket_align_free_start()
1751 return free_start; in ocfs2_bucket_align_free_start()
1759 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_bucket_check_space() local
1779 if (free_start < size) { in ocfs2_xa_bucket_check_space()
1789 rc = ocfs2_xa_check_space_helper(needed_space, free_start, in ocfs2_xa_bucket_check_space()
1793 free_start = ocfs2_bucket_align_free_start(sb, free_start, in ocfs2_xa_bucket_check_space()
1796 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_bucket_check_space()
1842 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_bucket_add_namevalue() local
1847 free_start = ocfs2_bucket_align_free_start(sb, free_start, size); in ocfs2_xa_bucket_add_namevalue()
1848 nameval_offset = free_start - size; in ocfs2_xa_bucket_add_namevalue()