]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - mm/truncate.c
[PATCH] VM: Fix the gfp_mask in invalidate_complete_page2
[linux-2.6-omap-h63xx.git] / mm / truncate.c
index f4edbc179d14423e1f3acf9555b96bc9795b37bc..11ca480701dd1ae38a85fc04aae7f3ebaedd6939 100644 (file)
@@ -302,7 +302,7 @@ invalidate_complete_page2(struct address_space *mapping, struct page *page)
        if (page->mapping != mapping)
                return 0;
 
-       if (PagePrivate(page) && !try_to_release_page(page, 0))
+       if (PagePrivate(page) && !try_to_release_page(page, GFP_KERNEL))
                return 0;
 
        write_lock_irq(&mapping->tree_lock);
@@ -396,6 +396,7 @@ int invalidate_inode_pages2_range(struct address_space *mapping,
                pagevec_release(&pvec);
                cond_resched();
        }
+       WARN_ON_ONCE(ret);
        return ret;
 }
 EXPORT_SYMBOL_GPL(invalidate_inode_pages2_range);