Updated to 2.6.32.27
/fs/nfs/file.c
blob:9f83d9fe9a61af75574782c310d27ee78f03017a -> blob:61b3bf503ee157d8243259d41e3d7e13765b27f8
--- fs/nfs/file.c
+++ fs/nfs/file.c
@@ -27,8 +27,6 @@
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/aio.h>
-#include <linux/gfp.h>
-#include <linux/swap.h>
#include <asm/uaccess.h>
#include <asm/system.h>
@@ -486,19 +484,11 @@ static void nfs_invalidate_page(struct p
*/
static int nfs_release_page(struct page *page, gfp_t gfp)
{
- struct address_space *mapping = page->mapping;
-
dfprintk(PAGECACHE, "NFS: release_page(%p)\n", page);
/* Only do I/O if gfp is a superset of GFP_KERNEL */
- if (mapping && (gfp & GFP_KERNEL) == GFP_KERNEL) {
- int how = FLUSH_SYNC;
-
- /* Don't let kswapd deadlock waiting for OOM RPC calls */
- if (current_is_kswapd())
- how = 0;
- nfs_commit_inode(mapping->host, how);
- }
+ if ((gfp & GFP_KERNEL) == GFP_KERNEL)
+ nfs_wb_page(page->mapping->host, page);
/* If PagePrivate() is set, then the page is not freeable */
if (PagePrivate(page))
return 0;