diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-08-10 17:44:32 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 17:18:31 -0400 |
commit | cd3758e37ddea66fccca7d93c4b601e8a2e51926 (patch) | |
tree | 07566d3ee457524a97b534a4f214b9178b1278c8 /fs/nfs/write.c | |
parent | c03025d55540bd648f2546659090140ecc835572 (diff) |
NFS: Replace file->private_data with calls to nfs_file_open_context()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/write.c')
-rw-r--r-- | fs/nfs/write.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index fb396ea5accf..3e9e268b887e 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c | |||
@@ -667,7 +667,7 @@ static struct nfs_page * nfs_update_request(struct nfs_open_context* ctx, | |||
667 | 667 | ||
668 | int nfs_flush_incompatible(struct file *file, struct page *page) | 668 | int nfs_flush_incompatible(struct file *file, struct page *page) |
669 | { | 669 | { |
670 | struct nfs_open_context *ctx = (struct nfs_open_context *)file->private_data; | 670 | struct nfs_open_context *ctx = nfs_file_open_context(file); |
671 | struct nfs_page *req; | 671 | struct nfs_page *req; |
672 | int do_flush, status; | 672 | int do_flush, status; |
673 | /* | 673 | /* |
@@ -701,7 +701,7 @@ int nfs_flush_incompatible(struct file *file, struct page *page) | |||
701 | int nfs_updatepage(struct file *file, struct page *page, | 701 | int nfs_updatepage(struct file *file, struct page *page, |
702 | unsigned int offset, unsigned int count) | 702 | unsigned int offset, unsigned int count) |
703 | { | 703 | { |
704 | struct nfs_open_context *ctx = (struct nfs_open_context *)file->private_data; | 704 | struct nfs_open_context *ctx = nfs_file_open_context(file); |
705 | struct inode *inode = page->mapping->host; | 705 | struct inode *inode = page->mapping->host; |
706 | int status = 0; | 706 | int status = 0; |
707 | 707 | ||