search for: _page

Displaying 20 results from an estimated 31 matches for "_page".

Did you mean: page
2020 Sep 26
1
[PATCH 1/2] ext4/xfs: add page refcount helper
On Fri, Sep 25, 2020 at 01:44:41PM -0700, Ralph Campbell wrote: > error = ___wait_var_event(&page->_refcount, > - atomic_read(&page->_refcount) == 1, > + dax_layout_is_idle_page(page), > TASK_INTERRUPTIBLE, 0, 0, > ext4_wait_dax_page(ei)); > +++ b/fs/xfs/xfs_file.c > @@ -750,7 +750,7 @@ xfs_break_dax_layouts( > > *retry = true; > return ___wait_var_event(&page->_refcount, > - atomic_read(&page->_refcount) == 1, TASK_...
2007 Apr 18
0
[patch 9/9] Guest page hinting: full s390 support.
...sm("la %0,0(15)" : "=&d" (sp)); sp; }) @@ -734,6 +735,9 @@ void __init trap_init(void) pgm_check_table[0x1C] = &space_switch_exception; pgm_check_table[0x1D] = &hfp_sqrt_exception; pgm_check_table[0x40] = &do_monitor_call; +#if defined(CONFIG_PAGE_STATES) + pgm_check_table[0x1a] = &do_discard_fault; +#endif if (MACHINE_IS_VM) { #ifdef CONFIG_PFAULT diff -urpN linux-2.6/arch/s390/mm/fault.c linux-2.6-patched/arch/s390/mm/fault.c --- linux-2.6/arch/s390/mm/fault.c 2006-09-01 12:49:25.000000000 +0200 +++ linux-2.6-patched/arch/s390/mm/...
2007 Apr 18
0
[patch 9/9] Guest page hinting: full s390 support.
...sm("la %0,0(15)" : "=&d" (sp)); sp; }) @@ -734,6 +735,9 @@ void __init trap_init(void) pgm_check_table[0x1C] = &space_switch_exception; pgm_check_table[0x1D] = &hfp_sqrt_exception; pgm_check_table[0x40] = &do_monitor_call; +#if defined(CONFIG_PAGE_STATES) + pgm_check_table[0x1a] = &do_discard_fault; +#endif if (MACHINE_IS_VM) { #ifdef CONFIG_PFAULT diff -urpN linux-2.6/arch/s390/mm/fault.c linux-2.6-patched/arch/s390/mm/fault.c --- linux-2.6/arch/s390/mm/fault.c 2006-09-01 12:49:25.000000000 +0200 +++ linux-2.6-patched/arch/s390/mm/...
2006 Jul 14
9
DRY Javascript Degredation
...s the same form as would have been displayed with ajax. The problem is i have the entire code for this ajaxed form is in the view (rather than the non js "new" page which has the form code in "_form") I have it this way so I can do form_remote_for. I tried modifying "_page" to only have the form setup code, but then it complains about nil objects because i am setting up the form_for or form_remote_for in the view rather than in "_page". Is there some way to DRY this up easily or am I just destined to have my form code in two places. ~Jamie
2007 Apr 18
1
[PATCH 1/5] Add pagetable allocation notifiers
...dex: linux-2.6.13/arch/i386/mm/init.c =================================================================== --- linux-2.6.13.orig/arch/i386/mm/init.c 2005-08-24 09:31:05.000000000 -0700 +++ linux-2.6.13/arch/i386/mm/init.c 2005-08-24 09:31:31.000000000 -0700 @@ -79,6 +79,7 @@ static pte_t * __init one_page_table_ini { if (pmd_none(*pmd)) { pte_t *page_table = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE); + SetPagePTE(virt_to_page(page_table)); set_pmd(pmd, __pmd(__pa(page_table) | _PAGE_TABLE)); if (page_table != pte_offset_kernel(pmd, 0)) BUG(); Index: linux-2.6.13/arch/i386/mm/pag...
2007 Apr 18
1
[PATCH 1/5] Add pagetable allocation notifiers
...dex: linux-2.6.13/arch/i386/mm/init.c =================================================================== --- linux-2.6.13.orig/arch/i386/mm/init.c 2005-08-24 09:31:05.000000000 -0700 +++ linux-2.6.13/arch/i386/mm/init.c 2005-08-24 09:31:31.000000000 -0700 @@ -79,6 +79,7 @@ static pte_t * __init one_page_table_ini { if (pmd_none(*pmd)) { pte_t *page_table = (pte_t *) alloc_bootmem_low_pages(PAGE_SIZE); + SetPagePTE(virt_to_page(page_table)); set_pmd(pmd, __pmd(__pa(page_table) | _PAGE_TABLE)); if (page_table != pte_offset_kernel(pmd, 0)) BUG(); Index: linux-2.6.13/arch/i386/mm/pag...
2007 Apr 18
0
[patch 6/9] Guest page hinting: writable page table entries.
...| 1 9 files changed, 91 insertions(+), 5 deletions(-) diff -urpN linux-2.6/fs/exec.c linux-2.6-patched/fs/exec.c --- linux-2.6/fs/exec.c 2006-09-01 12:49:30.000000000 +0200 +++ linux-2.6-patched/fs/exec.c 2006-09-01 12:50:24.000000000 +0200 @@ -307,6 +307,7 @@ void install_arg_page(struct vm_area_str { struct mm_struct *mm = vma->vm_mm; pte_t * pte; + pte_t pte_val; spinlock_t *ptl; if (unlikely(anon_vma_prepare(vma))) @@ -322,8 +323,9 @@ void install_arg_page(struct vm_area_str } inc_mm_counter(mm, anon_rss); lru_cache_add_active(page); - set_pte_at(mm, a...
2007 Apr 18
0
[patch 6/9] Guest page hinting: writable page table entries.
...| 1 9 files changed, 91 insertions(+), 5 deletions(-) diff -urpN linux-2.6/fs/exec.c linux-2.6-patched/fs/exec.c --- linux-2.6/fs/exec.c 2006-09-01 12:49:30.000000000 +0200 +++ linux-2.6-patched/fs/exec.c 2006-09-01 12:50:24.000000000 +0200 @@ -307,6 +307,7 @@ void install_arg_page(struct vm_area_str { struct mm_struct *mm = vma->vm_mm; pte_t * pte; + pte_t pte_val; spinlock_t *ptl; if (unlikely(anon_vma_prepare(vma))) @@ -322,8 +323,9 @@ void install_arg_page(struct vm_area_str } inc_mm_counter(mm, anon_rss); lru_cache_add_active(page); - set_pte_at(mm, a...
2020 Oct 01
0
[RFC PATCH v3 1/2] ext4/xfs: add page refcount helper
...4 insertions(+), 9 deletions(-) diff --git a/fs/dax.c b/fs/dax.c index 5b47834f2e1b..85c63f735909 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -358,7 +358,7 @@ static void dax_disassociate_entry(void *entry, struct address_space *mapping, for_each_mapped_pfn(entry, pfn) { struct page *page = pfn_to_page(pfn); - WARN_ON_ONCE(trunc && page_ref_count(page) > 1); + WARN_ON_ONCE(trunc && !dax_layout_is_idle_page(page)); WARN_ON_ONCE(page->mapping && page->mapping != mapping); page->mapping = NULL; page->index = 0; @@ -372,7 +372,7 @@ static struct pag...
2007 Apr 18
2
pgd_alloc and [cd]tors
Is there any real use in having a ctor/dtor for the pgd cache? Given that all pgd allocation happens via pgd_alloc/pgd_free, why not just fold the [cd]tor in? I'm asking because Xen wants pgd[3] to be unshared in the PAE case, and it looks to me like the easiest way to handle that is by making pgd_alloc/free pv-ops and doing the appropriate thing in the Xen code. Would need to sort out the
2007 Apr 18
2
pgd_alloc and [cd]tors
Is there any real use in having a ctor/dtor for the pgd cache? Given that all pgd allocation happens via pgd_alloc/pgd_free, why not just fold the [cd]tor in? I'm asking because Xen wants pgd[3] to be unshared in the PAE case, and it looks to me like the easiest way to handle that is by making pgd_alloc/free pv-ops and doing the appropriate thing in the Xen code. Would need to sort out the
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
...h architecture specficic primitives. s390 now uses PG_arch_1 and avoids to waste another page flag (it still uses two additional bits). - Add calls to make pages volatile when pages are moved from the active to the inactive list and set max_buffer_heads to zero to force a try_to_release_page call to get more page into volatile state. - remap_file_pages now works with guest page hinting, although the discard of a page contained in a non-linear mapping is slow. - Simplified the check in the mlock code. - In general the code looks a bit nicer now. I tried to implement batched st...
2007 May 11
6
[patch 0/6] [rfc] guest page hinting version 5
...h architecture specficic primitives. s390 now uses PG_arch_1 and avoids to waste another page flag (it still uses two additional bits). - Add calls to make pages volatile when pages are moved from the active to the inactive list and set max_buffer_heads to zero to force a try_to_release_page call to get more page into volatile state. - remap_file_pages now works with guest page hinting, although the discard of a page contained in a non-linear mapping is slow. - Simplified the check in the mlock code. - In general the code looks a bit nicer now. I tried to implement batched st...
2007 Apr 18
2
[patch 1/9] Guest page hinting: unused / free pages.
...and provide a fresh frame containing zeroes instead. To communicate the page states "unused" and "stable" to the host two architecture defined primitives page_set_unused() and page_set_stable() are introduced, which are used in the page allocator. The already existing arch_free_page is not used for page_set_unused since it is called before the reserved pages check. In addition arch_free_page can do anything on a given architecture, while page_set_stable() and page_set_unused() have a clearly defined meaning. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> ---...
2007 Apr 18
2
[patch 1/9] Guest page hinting: unused / free pages.
...and provide a fresh frame containing zeroes instead. To communicate the page states "unused" and "stable" to the host two architecture defined primitives page_set_unused() and page_set_stable() are introduced, which are used in the page allocator. The already existing arch_free_page is not used for page_set_unused since it is called before the reserved pages check. In addition arch_free_page can do anything on a given architecture, while page_set_stable() and page_set_unused() have a clearly defined meaning. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> ---...
2007 Apr 18
0
[patch 2/9] Guest page hinting: unused / free pages on s390.
...urpN linux-2.6/include/asm-s390/page-states.h linux-2.6-patched/include/asm-s390/page-states.h --- linux-2.6/include/asm-s390/page-states.h 1970-01-01 01:00:00.000000000 +0100 +++ linux-2.6-patched/include/asm-s390/page-states.h 2006-09-01 12:49:36.000000000 +0200 @@ -0,0 +1,55 @@ +#ifndef _ASM_S390_PAGE_STATES_H +#define _ASM_S390_PAGE_STATES_H + +#define ESSA_GET_STATE 0 +#define ESSA_SET_STABLE 1 +#define ESSA_SET_UNUSED 2 +#define ESSA_SET_VOLATILE 3 +#define ESSA_SET_PVOLATILE 4 +#define ESSA_SET_STABLE_MAKE_RESIDENT 5 +#define ESSA_SET_STABLE_IF_NOT_DISCARDED 6 + +#define ESSA_USTATE_...
2007 Apr 18
0
[patch 2/9] Guest page hinting: unused / free pages on s390.
...urpN linux-2.6/include/asm-s390/page-states.h linux-2.6-patched/include/asm-s390/page-states.h --- linux-2.6/include/asm-s390/page-states.h 1970-01-01 01:00:00.000000000 +0100 +++ linux-2.6-patched/include/asm-s390/page-states.h 2006-09-01 12:49:36.000000000 +0200 @@ -0,0 +1,55 @@ +#ifndef _ASM_S390_PAGE_STATES_H +#define _ASM_S390_PAGE_STATES_H + +#define ESSA_GET_STATE 0 +#define ESSA_SET_STABLE 1 +#define ESSA_SET_UNUSED 2 +#define ESSA_SET_VOLATILE 3 +#define ESSA_SET_PVOLATILE 4 +#define ESSA_SET_STABLE_MAKE_RESIDENT 5 +#define ESSA_SET_STABLE_IF_NOT_DISCARDED 6 + +#define ESSA_USTATE_...
2007 Apr 18
4
[patch 3/9] Guest page hinting: volatile page cache.
...needed for i/o. 4) The page is locked. Someone has exclusive access to the page. 5) The page is anonymous. Swap cache support needs additional code. 6) The page has no mapping. No backing, the page cannot be recreated. 7) The page is not uptodate. 8) The page has private information. try_to_release_page can fail, e.g. in case the private information is journaling data. The discard fault need to be able to remove the page. 9) The page is already discarded. 10) The page map count is not equal to the page reference count - 1. The discard fault handler can remove the page cache reference and...