Skip to content

Commit 7549ad5

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
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>
1 parent 2c17400 commit 7549ad5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/nfs/write.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,8 +1598,7 @@ int nfs_migrate_page(struct address_space *mapping, struct page *newpage,
15981598
struct nfs_page *req;
15991599
int ret;
16001600

1601-
if (PageFsCache(page))
1602-
nfs_fscache_release_page(page, GFP_KERNEL);
1601+
nfs_fscache_release_page(page, GFP_KERNEL);
16031602

16041603
req = nfs_find_and_lock_request(page);
16051604
ret = PTR_ERR(req);

0 commit comments

Comments
 (0)