NFS: remove unused wb_complete field from struct nfs_page
authorFred Isaman <iisaman@netapp.com>
Fri, 20 Apr 2012 18:47:49 +0000 (14:47 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 27 Apr 2012 18:10:38 +0000 (14:10 -0400)
Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pagelist.c
fs/nfs/write.c
include/linux/nfs_page.h

index 4cf2a68493e06df146867ef7035f1bc352452819..5d01a165108491c01f6a163fa9b718c098754ade 100644 (file)
@@ -114,7 +114,6 @@ nfs_create_request(struct nfs_open_context *ctx, struct inode *inode,
         * long write-back delay. This will be adjusted in
         * update_nfs_request below if the region is not locked. */
        req->wb_page    = page;
-       atomic_set(&req->wb_complete, 0);
        req->wb_index   = page->index;
        page_cache_get(page);
        BUG_ON(PagePrivate(page));
index 150397279b8d2b74b995113e1a6a6a600cfb95a3..705bf01cfbba8bb50f3051bae9e51efb466239bc 100644 (file)
@@ -1059,7 +1059,6 @@ static int nfs_flush_multi(struct nfs_pageio_descriptor *desc,
                nbytes -= len;
                offset += len;
        } while (nbytes != 0);
-       atomic_set(&req->wb_complete, requests);
        desc->pg_rpc_callops = &nfs_write_common_ops;
        return ret;
 
index bc5b7a5e787e870bbeb3fba752f4c93450156a4c..0a5b63f1611680f510d38bf370016422426bf101 100644 (file)
@@ -36,7 +36,6 @@ struct nfs_page {
        struct page             *wb_page;       /* page to read in/write out */
        struct nfs_open_context *wb_context;    /* File state context info */
        struct nfs_lock_context *wb_lock_context;       /* lock context info */
-       atomic_t                wb_complete;    /* i/os we're waiting for */
        pgoff_t                 wb_index;       /* Offset >> PAGE_CACHE_SHIFT */
        unsigned int            wb_offset,      /* Offset & ~PAGE_CACHE_MASK */
                                wb_pgbase,      /* Start of page data */