aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-07-16 16:39:15 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-07-17 13:33:50 -0400
commitce4ef7c0a8a0594d7b9d088d73866a4389402a7e (patch)
tree2898effa24c9b74d27b17dd8219064524537af1e /fs/nfs/internal.h
parent466bfe7f4a5bee4cdd73d3f6bd290173a8c75a40 (diff)
NFS: Split out NFS v4 file operations
This patch moves the NFS v4 file functions into a new file that is only compiled when CONFIG_NFS_V4 is enabled. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 35a8ffec69f6..ca7200a53caf 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -257,6 +257,23 @@ int nfs_link(struct dentry *, struct inode *, struct dentry *);
257int nfs_mknod(struct inode *, struct dentry *, umode_t, dev_t); 257int nfs_mknod(struct inode *, struct dentry *, umode_t, dev_t);
258int nfs_rename(struct inode *, struct dentry *, struct inode *, struct dentry *); 258int nfs_rename(struct inode *, struct dentry *, struct inode *, struct dentry *);
259 259
260/* file.c */
261int nfs_file_fsync_commit(struct file *, loff_t, loff_t, int);
262loff_t nfs_file_llseek(struct file *, loff_t, int);
263int nfs_file_flush(struct file *, fl_owner_t);
264ssize_t nfs_file_read(struct kiocb *, const struct iovec *, unsigned long, loff_t);
265ssize_t nfs_file_splice_read(struct file *, loff_t *, struct pipe_inode_info *,
266 size_t, unsigned int);
267int nfs_file_mmap(struct file *, struct vm_area_struct *);
268ssize_t nfs_file_write(struct kiocb *, const struct iovec *, unsigned long, loff_t);
269int nfs_file_release(struct inode *, struct file *);
270int nfs_lock(struct file *, int, struct file_lock *);
271int nfs_flock(struct file *, int, struct file_lock *);
272ssize_t nfs_file_splice_write(struct pipe_inode_info *, struct file *, loff_t *,
273 size_t, unsigned int);
274int nfs_check_flags(int);
275int nfs_setlease(struct file *, long, struct file_lock **);
276
260/* inode.c */ 277/* inode.c */
261extern struct workqueue_struct *nfsiod_workqueue; 278extern struct workqueue_struct *nfsiod_workqueue;
262extern struct inode *nfs_alloc_inode(struct super_block *sb); 279extern struct inode *nfs_alloc_inode(struct super_block *sb);