Skip to content

Commit 9533da2

Browse files
Fred IsamanTrond Myklebust
authored andcommitted
NFS: remove unused wb_complete field from struct nfs_page
Signed-off-by: Fred Isaman <iisaman@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent 061ae2e commit 9533da2

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

fs/nfs/pagelist.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ nfs_create_request(struct nfs_open_context *ctx, struct inode *inode,
114114
* long write-back delay. This will be adjusted in
115115
* update_nfs_request below if the region is not locked. */
116116
req->wb_page = page;
117-
atomic_set(&req->wb_complete, 0);
118117
req->wb_index = page->index;
119118
page_cache_get(page);
120119
BUG_ON(PagePrivate(page));

fs/nfs/write.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,6 @@ static int nfs_flush_multi(struct nfs_pageio_descriptor *desc,
10591059
nbytes -= len;
10601060
offset += len;
10611061
} while (nbytes != 0);
1062-
atomic_set(&req->wb_complete, requests);
10631062
desc->pg_rpc_callops = &nfs_write_common_ops;
10641063
return ret;
10651064

include/linux/nfs_page.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ struct nfs_page {
3636
struct page *wb_page; /* page to read in/write out */
3737
struct nfs_open_context *wb_context; /* File state context info */
3838
struct nfs_lock_context *wb_lock_context; /* lock context info */
39-
atomic_t wb_complete; /* i/os we're waiting for */
4039
pgoff_t wb_index; /* Offset >> PAGE_CACHE_SHIFT */
4140
unsigned int wb_offset, /* Offset & ~PAGE_CACHE_MASK */
4241
wb_pgbase, /* Start of page data */

0 commit comments

Comments
 (0)