History

mm/damon: remove some unneeded function definitions in damon.h

In damon.h some func definitions about VA & PA can only be used in its own file, so there no need to define in the header file, and the header file will look cleaner. If other files later need these functions, the prototypes can be added to damon.h at that time. [sj@kernel.org: remove unnecessary function prototype position changes] Link: https://lkml.kernel.org/r/20211118114827.20052-1-sj@kernel.org

Xin Hao committed 4 years ago

Commit cdeed001 parent d720bbb3 files · +16 −34Browse files

Showing the changes to include (1 of 3 files). Show all

Unified · Split

include/linux/damon.h+0−21
@@ -461,34 +461,13 @@ int damon_stop(struct damon_ctx **ctxs, int nr_ctxs); · 460 unmodified lines
461#endif /* CONFIG_DAMON */461#endif /* CONFIG_DAMON */
462 462
463#ifdef CONFIG_DAMON_VADDR463#ifdef CONFIG_DAMON_VADDR
464
465/* Monitoring primitives for virtual memory address spaces */
466void damon_va_init(struct damon_ctx *ctx);
467void damon_va_update(struct damon_ctx *ctx);
468void damon_va_prepare_access_checks(struct damon_ctx *ctx);
469unsigned int damon_va_check_accesses(struct damon_ctx *ctx);
470bool damon_va_target_valid(void *t);464bool damon_va_target_valid(void *t);
471void damon_va_cleanup(struct damon_ctx *ctx);
472int damon_va_apply_scheme(struct damon_ctx *context, struct damon_target *t,
473 struct damon_region *r, struct damos *scheme);
474int damon_va_scheme_score(struct damon_ctx *context, struct damon_target *t,
475 struct damon_region *r, struct damos *scheme);
476void damon_va_set_primitives(struct damon_ctx *ctx);465void damon_va_set_primitives(struct damon_ctx *ctx);
477
478#endif /* CONFIG_DAMON_VADDR */466#endif /* CONFIG_DAMON_VADDR */
479 467
480#ifdef CONFIG_DAMON_PADDR468#ifdef CONFIG_DAMON_PADDR
481
482/* Monitoring primitives for the physical memory address space */
483void damon_pa_prepare_access_checks(struct damon_ctx *ctx);
484unsigned int damon_pa_check_accesses(struct damon_ctx *ctx);
485bool damon_pa_target_valid(void *t);469bool damon_pa_target_valid(void *t);
486int damon_pa_apply_scheme(struct damon_ctx *context, struct damon_target *t,
487 struct damon_region *r, struct damos *scheme);
488int damon_pa_scheme_score(struct damon_ctx *context, struct damon_target *t,
489 struct damon_region *r, struct damos *scheme);
490void damon_pa_set_primitives(struct damon_ctx *ctx);470void damon_pa_set_primitives(struct damon_ctx *ctx);
491
492#endif /* CONFIG_DAMON_PADDR */471#endif /* CONFIG_DAMON_PADDR */
493 472
494#endif /* _DAMON_H */473#endif /* _DAMON_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t