X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=mm%2Ffilemap_xip.c;h=83364df74a33811ea7aea971412bfe91d4fe9c17;hb=ea5a9f0c3447889abceb7482c391bb977472eab9;hp=427dfe3ce78c68eebe0afde4636b6fdc91ecdec5;hpb=58984ce21d315b70df1a43644df7416ea7c9bfd8;p=safe%2Fjmp%2Flinux-2.6 diff --git a/mm/filemap_xip.c b/mm/filemap_xip.c index 427dfe3..83364df 100644 --- a/mm/filemap_xip.c +++ b/mm/filemap_xip.c @@ -17,6 +17,7 @@ #include #include #include +#include #include #include @@ -194,7 +195,7 @@ retry: flush_cache_page(vma, address, pte_pfn(*pte)); pteval = ptep_clear_flush_notify(vma, address, pte); page_remove_rmap(page); - dec_mm_counter(mm, file_rss); + dec_mm_counter(mm, MM_FILEPAGES); BUG_ON(pte_dirty(pteval)); pte_unmap_unlock(pte, ptl); page_cache_release(page); @@ -296,7 +297,7 @@ out: } } -static struct vm_operations_struct xip_file_vm_ops = { +static const struct vm_operations_struct xip_file_vm_ops = { .fault = xip_file_fault, };