search for: n_req_pag

Displaying 19 results from an estimated 19 matches for "n_req_pag".

Did you mean: n_req_pages
2019 Apr 19
0
[PATCH v2 1/4] mm/balloon_compaction: list interfaces
..._dev_info); > >> +extern size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, > >> + struct list_head *pages); > >> +extern size_t balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info, > >> + struct list_head *pages, int n_req_pages); > > > > Why size_t I wonder? It can never be > n_req_pages which is int. > > Callers also seem to assume int. > > Only because on the previous iteration > ( https://lkml.org/lkml/2019/2/6/912 ) you said: > > > Are we sure this int never overflows? Why n...
2019 Apr 24
1
[PATCH v3 1/4] mm/balloon_compaction: list interfaces
...equeue(struct balloon_dev_info *b_dev_info); > +extern size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, > + struct list_head *pages); > +extern size_t balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info, > + struct list_head *pages, size_t n_req_pages); > > static inline void balloon_devinfo_init(struct balloon_dev_info *balloon) > { > diff --git a/mm/balloon_compaction.c b/mm/balloon_compaction.c > index ef858d547e2d..a2995002edc2 100644 > --- a/mm/balloon_compaction.c > +++ b/mm/balloon_compaction.c > @@ -10,6 +10...
2019 Apr 19
0
[PATCH v2 1/4] mm/balloon_compaction: list interfaces
...e_dequeue(struct balloon_dev_info *b_dev_info); > +extern size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, > + struct list_head *pages); > +extern size_t balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info, > + struct list_head *pages, int n_req_pages); > Why size_t I wonder? It can never be > n_req_pages which is int. Callers also seem to assume int. > static inline void balloon_devinfo_init(struct balloon_dev_info *balloon) > { > diff --git a/mm/balloon_compaction.c b/mm/balloon_compaction.c > index ef858d547e2d..88...
2019 Feb 07
0
[PATCH 3/6] mm/balloon_compaction: list interfaces
...- removes pages from balloon's page list and > >> + * returns a list of the pages. > >> + * @b_dev_info: balloon device decriptor where we will grab a page from. > >> + * @pages: pointer to the list of pages that would be returned to the caller. > >> + * @n_req_pages: number of requested pages. > >> + * > >> + * Driver must call it to properly de-allocate a previous enlisted balloon pages > >> + * before definetively releasing it back to the guest system. This function > >> + * tries to remove @n_req_pages from the balloone...
2019 Apr 23
0
[PATCH v3 1/4] mm/balloon_compaction: list interfaces
...page *balloon_page_dequeue(struct balloon_dev_info *b_dev_info); +extern size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, + struct list_head *pages); +extern size_t balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info, + struct list_head *pages, size_t n_req_pages); static inline void balloon_devinfo_init(struct balloon_dev_info *balloon) { diff --git a/mm/balloon_compaction.c b/mm/balloon_compaction.c index ef858d547e2d..a2995002edc2 100644 --- a/mm/balloon_compaction.c +++ b/mm/balloon_compaction.c @@ -10,6 +10,105 @@ #include <linux/export.h>...
2019 Apr 25
0
[PATCH v4 1/4] mm/balloon_compaction: List interfaces
...page *balloon_page_dequeue(struct balloon_dev_info *b_dev_info); +extern size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, + struct list_head *pages); +extern size_t balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info, + struct list_head *pages, size_t n_req_pages); static inline void balloon_devinfo_init(struct balloon_dev_info *balloon) { diff --git a/mm/balloon_compaction.c b/mm/balloon_compaction.c index ef858d547e2d..b7bd72612c5a 100644 --- a/mm/balloon_compaction.c +++ b/mm/balloon_compaction.c @@ -10,6 +10,105 @@ #include <linux/export.h>...
2019 Feb 07
0
[PATCH 3/6] mm/balloon_compaction: list interfaces
...n_page_dequeue(struct balloon_dev_info *b_dev_info); > +extern void balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, > + struct list_head *pages); > +extern int balloon_page_list_dequeue(struct balloon_dev_info *b_dev_info, > + struct list_head *pages, int n_req_pages); > > static inline void balloon_devinfo_init(struct balloon_dev_info *balloon) > { > diff --git a/mm/balloon_compaction.c b/mm/balloon_compaction.c > index ef858d547e2d..b8e82864f82c 100644 > --- a/mm/balloon_compaction.c > +++ b/mm/balloon_compaction.c > @@ -10,6 +10...
2019 Apr 23
5
[PATCH v3 0/4] vmw_balloon: compaction and shrinker support
VMware balloon enhancements: adding support for memory compaction, memory shrinker (to prevent OOM) and splitting of refused pages to prevent recurring inflations. Patches 1-2: Support for compaction Patch 3: Support for memory shrinker - disabled by default Patch 4: Split refused pages to improve performance v2->v3: * Fixing wrong argument type (int->size_t) [Michael] * Fixing a comment
2019 Jul 18
2
[PATCH v4 1/2] mm/balloon_compaction: avoid duplicate page removal
From: Wei Wang <wei.w.wang at intel.com> A #GP is reported in the guest when requesting balloon inflation via virtio-balloon. The reason is that the virtio-balloon driver has removed the page from its internal page list (via balloon_page_pop), but balloon_page_enqueue_one also calls "list_del" to do the removal. This is necessary when it's used from balloon_page_enqueue_list,
2019 Jul 18
0
[PATCH v3 2/2] balloon: fix up comments
...om the guest system. * - * Return: number of pages that were enqueued. + * Returns: number of pages that were enqueued. */ size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, struct list_head *pages) @@ -63,14 +63,15 @@ EXPORT_SYMBOL_GPL(balloon_page_list_enqueue); * @n_req_pages: number of requested pages. * * Driver must call this function to properly de-allocate a previous enlisted - * balloon pages before definetively releasing it back to the guest system. + * balloon pages before definitively releasing it back to the guest system. * This function tries to remov...
2019 Jul 18
0
[PATCH v4 2/2] balloon: fix up comments
...om the guest system. * - * Return: number of pages that were enqueued. + * Returns: number of pages that were enqueued. */ size_t balloon_page_list_enqueue(struct balloon_dev_info *b_dev_info, struct list_head *pages) @@ -63,14 +63,15 @@ EXPORT_SYMBOL_GPL(balloon_page_list_enqueue); * @n_req_pages: number of requested pages. * * Driver must call this function to properly de-allocate a previous enlisted - * balloon pages before definetively releasing it back to the guest system. + * balloon pages before definitively releasing it back to the guest system. * This function tries to remov...
2019 Apr 25
6
[PATCH v4 0/4] vmw_balloon: Compaction and shrinker support
VMware balloon enhancements: adding support for memory compaction, memory shrinker (to prevent OOM) and splitting of refused pages to prevent recurring inflations. Patches 1-2: Support for compaction Patch 3: Support for memory shrinker - disabled by default Patch 4: Split refused pages to improve performance v3->v4: * "get around to" comment [Michael] * Put list_add under page lock
2019 Apr 25
6
[PATCH v4 0/4] vmw_balloon: Compaction and shrinker support
VMware balloon enhancements: adding support for memory compaction, memory shrinker (to prevent OOM) and splitting of refused pages to prevent recurring inflations. Patches 1-2: Support for compaction Patch 3: Support for memory shrinker - disabled by default Patch 4: Split refused pages to improve performance v3->v4: * "get around to" comment [Michael] * Put list_add under page lock
2020 Jun 09
1
[PATCH v2] mm/balloon_compaction: Fix trivial spelling
...returns a list of the pages. > - * @b_dev_info: balloon device decriptor where we will grab a page from. > + * @b_dev_info: balloon device descriptor where we will grab a page from. > * @pages: pointer to the list of pages that would be returned to the caller. > * @n_req_pages: number of requested pages. > * > @@ -157,7 +157,7 @@ EXPORT_SYMBOL_GPL(balloon_page_enqueue); > /* > * balloon_page_dequeue - removes a page from balloon's page list and returns > * its address to allow the driver to release the page. > - * @b_d...
2019 Jul 18
2
[PATCH v3 1/2] mm/balloon_compaction: avoid duplicate page removal
From: Wei Wang <wei.w.wang at intel.com> A #GP is reported in the guest when requesting balloon inflation via virtio-balloon. The reason is that the virtio-balloon driver has removed the page from its internal page list (via balloon_page_pop), but balloon_page_enqueue_one also calls "list_del" to do the removal. This is necessary when it's used from balloon_page_enqueue_list,
2019 Jul 18
1
[PATCH v5 1/2] mm/balloon_compaction: avoid duplicate page removal
From: Wei Wang <wei.w.wang at intel.com> A #GP is reported in the guest when requesting balloon inflation via virtio-balloon. The reason is that the virtio-balloon driver has removed the page from its internal page list (via balloon_page_pop), but balloon_page_enqueue_one also calls "list_del" to do the removal. This is necessary when it's used from balloon_page_enqueue_list,
2020 Jun 09
0
[PATCH 15/17] mm: Fix trivial spelling
...and > * returns a list of the pages. > - * @b_dev_info: balloon device decriptor where we will grab a page from. > + * @b_dev_info: balloon device descriptor where we will grab a page from. > * @pages: pointer to the list of pages that would be returned to the caller. > * @n_req_pages: number of requested pages. > * > @@ -157,7 +157,7 @@ EXPORT_SYMBOL_GPL(balloon_page_enqueue); > /* > * balloon_page_dequeue - removes a page from balloon's page list and returns > * its address to allow the driver to release the page. > - * @b_dev_info: balloon d...
2020 Jun 09
0
[PATCH v2] mm/balloon_compaction: Fix trivial spelling
...and > * returns a list of the pages. > - * @b_dev_info: balloon device decriptor where we will grab a page from. > + * @b_dev_info: balloon device descriptor where we will grab a page from. > * @pages: pointer to the list of pages that would be returned to the caller. > * @n_req_pages: number of requested pages. > * > @@ -157,7 +157,7 @@ EXPORT_SYMBOL_GPL(balloon_page_enqueue); > /* > * balloon_page_dequeue - removes a page from balloon's page list and returns > * its address to allow the driver to release the page. > - * @b_dev_info: balloon d...
2020 Jun 10
0
[PATCH v2] mm/balloon_compaction: Fix trivial spelling
...d > * returns a list of the pages. > - * @b_dev_info: balloon device decriptor where we will grab a page from. > + * @b_dev_info: balloon device descriptor where we will grab a page from. > * @pages: pointer to the list of pages that would be returned to the caller. > * @n_req_pages: number of requested pages. > * > @@ -157,7 +157,7 @@ EXPORT_SYMBOL_GPL(balloon_page_enqueue); > /* > * balloon_page_dequeue - removes a page from balloon's page list and returns > * its address to allow the driver to release the page. > - * @b_dev_info: ballo...