Browse Source

NFS: Remove a redundant check for PageFsCache in nfs_migrate_page()

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: David Howells <dhowells@redhat.com>
Trond Myklebust 15 years ago
parent
commit
7549ad5f9b
1 changed files with 1 additions and 2 deletions
  1. 1 2
      fs/nfs/write.c

+ 1 - 2
fs/nfs/write.c

@@ -1598,8 +1598,7 @@ int nfs_migrate_page(struct address_space *mapping, struct page *newpage,
 	struct nfs_page *req;
 	int ret;
 
-	if (PageFsCache(page))
-		nfs_fscache_release_page(page, GFP_KERNEL);
+	nfs_fscache_release_page(page, GFP_KERNEL);
 
 	req = nfs_find_and_lock_request(page);
 	ret = PTR_ERR(req);