Lines Matching refs:free_start
1422 static int ocfs2_xa_check_space_helper(int needed_space, int free_start, in ocfs2_xa_check_space_helper() argument
1430 free_space = free_start - in ocfs2_xa_check_space_helper()
1587 int offset, free_start = loc->xl_size; in ocfs2_xa_block_get_free_start() local
1591 if (offset < free_start) in ocfs2_xa_block_get_free_start()
1592 free_start = offset; in ocfs2_xa_block_get_free_start()
1595 return free_start; in ocfs2_xa_block_get_free_start()
1602 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_block_check_space() local
1619 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_block_check_space()
1668 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_block_add_namevalue() local
1670 loc->xl_entry->xe_name_offset = cpu_to_le16(free_start - size); in ocfs2_xa_block_add_namevalue()
1747 int free_start, int size) in ocfs2_bucket_align_free_start() argument
1753 if (((free_start - size) >> sb->s_blocksize_bits) != in ocfs2_bucket_align_free_start()
1754 ((free_start - 1) >> sb->s_blocksize_bits)) in ocfs2_bucket_align_free_start()
1755 free_start -= free_start % sb->s_blocksize; in ocfs2_bucket_align_free_start()
1757 return free_start; in ocfs2_bucket_align_free_start()
1765 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_bucket_check_space() local
1785 if (free_start < size) { in ocfs2_xa_bucket_check_space()
1795 rc = ocfs2_xa_check_space_helper(needed_space, free_start, in ocfs2_xa_bucket_check_space()
1799 free_start = ocfs2_bucket_align_free_start(sb, free_start, in ocfs2_xa_bucket_check_space()
1802 return ocfs2_xa_check_space_helper(needed_space, free_start, count); in ocfs2_xa_bucket_check_space()
1848 int free_start = ocfs2_xa_get_free_start(loc); in ocfs2_xa_bucket_add_namevalue() local
1853 free_start = ocfs2_bucket_align_free_start(sb, free_start, size); in ocfs2_xa_bucket_add_namevalue()
1854 nameval_offset = free_start - size; in ocfs2_xa_bucket_add_namevalue()