Skip to content

Conversation

@ziyik
Copy link
Contributor

@ziyik ziyik commented Nov 18, 2025

-Return error code when FTL write fail

@yeetee179
Copy link
Contributor

LGTM


//ftl_page_write(g_pPage + g_cur_pageID, g_free_cell_index + 1, key);
ftl_page_write(g_pPage + g_cur_pageID, g_free_cell_index, w_data);
ret = ftl_page_write(g_pPage + g_cur_pageID, g_free_cell_index, w_data);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes to propagate the error code form ftl_page_write is looking fine.


//ftl_page_write(g_pPage + g_cur_pageID, g_free_cell_index + 1, key);
ftl_page_write(g_pPage + g_cur_pageID, g_free_cell_index, w_data);
ret = ftl_page_write(g_pPage + g_cur_pageID, g_free_cell_index, w_data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems unlikely that this part will actually return fail and then return success at the next location.
However, there might be an issue where the return value gets overwritten.

-Return error code when FTL write fail
@ziyik ziyik force-pushed the AILite_ftl_error_ret branch from 312498b to ee96090 Compare November 24, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants