Commit 82383d1e authored by Kirill Smelkov's avatar Kirill Smelkov

bigfile: Note that ramh_alloc_page does not add the page to any lists

It was already said there that allocated page is not associated with
fileh. However the code is doing more - it does not add the page to
ram->lru_list and (obviously) to fileh->dirty_pages lists.

Document that explicitly.
parent d91ef8fb
......@@ -145,7 +145,10 @@ struct ramh_ops {
*
* XXX write on how to free pages (= drop & free(struct Page) ?)
*
* NOTE after allocation, page->fileh & page->f_pgoffset are unset
* NOTE after allocation:
*
* - page->fileh & page->f_pgoffset are unset;
* - page is not added to ram->lru_list and fileh->dirty_pages lists.
*/
Page *ramh_alloc_page(RAMH *ramh, pgoff_t pgoffset_hint);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment