mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
NFS: Replace file->private_data with calls to nfs_file_open_context()
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
c03025d555
commit
cd3758e37d
10 changed files with 21 additions and 27 deletions
|
@ -667,7 +667,7 @@ static struct nfs_page * nfs_update_request(struct nfs_open_context* ctx,
|
|||
|
||||
int nfs_flush_incompatible(struct file *file, struct page *page)
|
||||
{
|
||||
struct nfs_open_context *ctx = (struct nfs_open_context *)file->private_data;
|
||||
struct nfs_open_context *ctx = nfs_file_open_context(file);
|
||||
struct nfs_page *req;
|
||||
int do_flush, status;
|
||||
/*
|
||||
|
@ -701,7 +701,7 @@ int nfs_flush_incompatible(struct file *file, struct page *page)
|
|||
int nfs_updatepage(struct file *file, struct page *page,
|
||||
unsigned int offset, unsigned int count)
|
||||
{
|
||||
struct nfs_open_context *ctx = (struct nfs_open_context *)file->private_data;
|
||||
struct nfs_open_context *ctx = nfs_file_open_context(file);
|
||||
struct inode *inode = page->mapping->host;
|
||||
int status = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue