summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-08-27 03:16:36 -0400
committerTrond Myklebust <trond.myklebust@hammerspace.com>2019-08-27 10:24:56 -0400
commit99300a85260c2b7febd57082a617d1062532067e (patch)
tree71520cac16e92c5b4f5764d2edc6a043dc28cce0 /fs/nfs
parentd33d4beb522987d1c305c12500796f9be3687dee (diff)
NFS: remove set but not used variable 'mapping'
Fixes gcc '-Wunused-but-set-variable' warning: fs/nfs/write.c: In function nfs_page_async_flush: fs/nfs/write.c:609:24: warning: variable mapping set but not used [-Wunused-but-set-variable] It is not use since commit aefb623c422e ("NFS: Fix writepage(s) error handling to not report errors twice") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/write.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index d193042fa228..85ca49549b39 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -606,7 +606,6 @@ static void nfs_write_error(struct nfs_page *req, int error)
606static int nfs_page_async_flush(struct nfs_pageio_descriptor *pgio, 606static int nfs_page_async_flush(struct nfs_pageio_descriptor *pgio,
607 struct page *page) 607 struct page *page)
608{ 608{
609 struct address_space *mapping;
610 struct nfs_page *req; 609 struct nfs_page *req;
611 int ret = 0; 610 int ret = 0;
612 611
@@ -621,7 +620,6 @@ static int nfs_page_async_flush(struct nfs_pageio_descriptor *pgio,
621 WARN_ON_ONCE(test_bit(PG_CLEAN, &req->wb_flags)); 620 WARN_ON_ONCE(test_bit(PG_CLEAN, &req->wb_flags));
622 621
623 /* If there is a fatal error that covers this write, just exit */ 622 /* If there is a fatal error that covers this write, just exit */
624 mapping = page_file_mapping(page);
625 ret = pgio->pg_error; 623 ret = pgio->pg_error;
626 if (nfs_error_is_fatal_on_server(ret)) 624 if (nfs_error_is_fatal_on_server(ret))
627 goto out_launder; 625 goto out_launder;