search for: find_get_page_nodiscard

Displaying 8 results from an estimated 8 matches for "find_get_page_nodiscard".

2007 Apr 18
2
[patch 4/9] Guest page hinting: volatile swap cache.
...ux/pagemap.h 2006-09-01 12:50:23.000000000 +0200 @@ -85,6 +85,13 @@ unsigned find_get_pages_contig(struct ad unsigned find_get_pages_tag(struct address_space *mapping, pgoff_t *index, int tag, unsigned int nr_pages, struct page **pages); +#if defined(CONFIG_PAGE_STATES) +extern struct page * find_get_page_nodiscard(struct address_space *mapping, + unsigned long index); +#else +#define find_get_page_nodiscard(mapping, index) find_get_page(mapping, index) +#endif + /* * Returns locked page at given index in given cache, creating it if needed. */ diff -urpN linux-2.6/include/linux/swap.h linux-2.6-...
2007 Apr 18
2
[patch 4/9] Guest page hinting: volatile swap cache.
...ux/pagemap.h 2006-09-01 12:50:23.000000000 +0200 @@ -85,6 +85,13 @@ unsigned find_get_pages_contig(struct ad unsigned find_get_pages_tag(struct address_space *mapping, pgoff_t *index, int tag, unsigned int nr_pages, struct page **pages); +#if defined(CONFIG_PAGE_STATES) +extern struct page * find_get_page_nodiscard(struct address_space *mapping, + unsigned long index); +#else +#define find_get_page_nodiscard(mapping, index) find_get_page(mapping, index) +#endif + /* * Returns locked page at given index in given cache, creating it if needed. */ diff -urpN linux-2.6/include/linux/swap.h linux-2.6-...
2007 Apr 18
0
[patch 7/9] Guest page hinting: minor fault optimization.
...d by the discard fault handler? If the page is in page/swap cache just map it even if it is already discarded. The first access to the page will cause a discard fault which needs to be able to deal with this kind of situation anyway because of races in the memory management. To do this the special find_get_page_nodiscard variant introduced for volatile swap cache is used which does not change the page state. The call to find_get_page in filemap_nopage and filemap_getpage are replaced with find_get_page_nodiscard. By the use of this function a new race condition is created. If a minor fault races with the discard of...
2007 Apr 18
0
[patch 7/9] Guest page hinting: minor fault optimization.
...d by the discard fault handler? If the page is in page/swap cache just map it even if it is already discarded. The first access to the page will cause a discard fault which needs to be able to deal with this kind of situation anyway because of races in the memory management. To do this the special find_get_page_nodiscard variant introduced for volatile swap cache is used which does not change the page state. The call to find_get_page in filemap_nopage and filemap_getpage are replaced with find_get_page_nodiscard. By the use of this function a new race condition is created. If a minor fault races with the discard of...
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings, after Carsten pitched CMM2 on the kvm mini summit here is a repost of version 5 of the guest page hinting patches. The code is still the same but has been adapted to the latest git level. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.
2007 Jun 28
6
[patch 0/6] resend: guest page hinting version 5.
Greetings, after Carsten pitched CMM2 on the kvm mini summit here is a repost of version 5 of the guest page hinting patches. The code is still the same but has been adapted to the latest git level. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin.
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page hinting patches. Compared to version four a few improvements have been added: - Avoid page_host_discards() calls outside of page-states.h - The discard list is now implemented via the page_free_discarded hook and architecture specific code. - PG_state_change page flag has been replaced with architecture specficic
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
After way to many months here is the fifth version of the guest page hinting patches. Compared to version four a few improvements have been added: - Avoid page_host_discards() calls outside of page-states.h - The discard list is now implemented via the page_free_discarded hook and architecture specific code. - PG_state_change page flag has been replaced with architecture specficic