Skip to content

Commit

Permalink
NFS: Remove a redundant check for PageFsCache in nfs_migrate_page()
Browse files Browse the repository at this point in the history
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Acked-by: David Howells <dhowells@redhat.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Feb 9, 2010
1 parent 2c17400 commit 7549ad5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7549ad5

Please sign in to comment.