mm: add flags argument to mm_cache_get_page

This commit is contained in:
Matheus
2026-07-18 15:24:31 -03:00
parent b9531c0ec7
commit 6e5e9ecdc5
5 changed files with 10 additions and 9 deletions
+2 -1
View File
@@ -114,7 +114,8 @@ static void remove_page(page_t *page) {
--mm_cache_cached_pages;
}
int mm_cache_get_page(vnode_t *vnode, uintmax_t offset, page_t **res) {
int mm_cache_get_page(vnode_t *vnode, uintmax_t offset, int flags, page_t **res) {
(void) flags;
__assert(vnode->type == V_TYPE_REGULAR || vnode->type == V_TYPE_BLKDEV);
__assert((offset % PAGE_SIZE) == 0);
retry_err: