Skip to content

Commit

Permalink
fixup! mm: Add reclaim for order > 0 allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
heatd committed Nov 11, 2024
1 parent 51d397a commit e2dbb83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kernel/include/onyx/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,15 @@ static inline uint64_t get_kernel_phys_offset()
*/
unsigned long pages_under_high_watermark();

/**
* @brief Calculate a free page target (for reclaim)
*
* @param gfp GFP used for the failed allocation/reclaim
* @param order Order allocation that failed
* @return Free page target. If 0, probably shouldn't reclaim.
*/
unsigned long page_reclaim_target(gfp_t gfp, unsigned int order);

/**
* @brief Drain pages from all zones' pcpu caches
*
Expand Down

0 comments on commit e2dbb83

Please sign in to comment.