Displaying 1 result from an estimated 1 matches for "should_adjust_pag".
Did you mean:
should_adjust_pages
2021 Nov 17
0
[RFC PATCH] virtio_balloon: add param to skip adjusting pages
...e_id id_table[] = {
> { 0 },
> };
>
> +static char *adjust_pages = "";
> +module_param(adjust_pages, charp, 0);
> +MODULE_PARM_DESC(adjust_pages, "Whether or not pages in the balloon should be removed from the managed page count");
> +
> +static bool should_adjust_pages(struct virtio_balloon *vb)
> +{
> + if (!strcmp(adjust_pages, "always"))
> + return true;
> + else if (!strcmp(adjust_pages, "never"))
> + return false;
> +
> + return !virtio_has_feature(vb->vdev,
> + VIRTIO_BALLOON_F_DEFLATE_ON_OOM);
> +...