Skip to content

Commit

Permalink
NFS: Define dummy nfs_init_cinfo() and nfs_init_cinfo_from_inode()
Browse files Browse the repository at this point in the history
These are needed when v3 and v4 are not enabled.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Bryan Schumaker authored and Trond Myklebust committed Apr 30, 2012
1 parent 24fc921 commit 68cd6fa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fs/nfs/write.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,17 @@ int nfs_write_need_commit(struct nfs_write_data *data)
}

#else
static void nfs_init_cinfo_from_inode(struct nfs_commit_info *cinfo,
struct inode *inode)
{
}

void nfs_init_cinfo(struct nfs_commit_info *cinfo,
struct inode *inode,
struct nfs_direct_req *dreq)
{
}

void
nfs_mark_request_commit(struct nfs_page *req, struct pnfs_layout_segment *lseg,
struct nfs_commit_info *cinfo)
Expand Down

0 comments on commit 68cd6fa

Please sign in to comment.