aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r--include/linux/nfs_fs.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h
index d2b5d7e0e85a..3a5e442ac776 100644
--- a/include/linux/nfs_fs.h
+++ b/include/linux/nfs_fs.h
@@ -301,6 +301,9 @@ extern u32 root_nfs_parse_addr(char *name); /*__init*/
301 * linux/fs/nfs/file.c 301 * linux/fs/nfs/file.c
302 */ 302 */
303extern struct inode_operations nfs_file_inode_operations; 303extern struct inode_operations nfs_file_inode_operations;
304#ifdef CONFIG_NFS_V3
305extern struct inode_operations nfs3_file_inode_operations;
306#endif /* CONFIG_NFS_V3 */
304extern struct file_operations nfs_file_operations; 307extern struct file_operations nfs_file_operations;
305extern struct address_space_operations nfs_file_aops; 308extern struct address_space_operations nfs_file_aops;
306 309
@@ -316,6 +319,22 @@ static inline struct rpc_cred *nfs_file_cred(struct file *file)
316} 319}
317 320
318/* 321/*
322 * linux/fs/nfs/xattr.c
323 */
324#ifdef CONFIG_NFS_V3_ACL
325extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t);
326extern ssize_t nfs3_getxattr(struct dentry *, const char *, void *, size_t);
327extern int nfs3_setxattr(struct dentry *, const char *,
328 const void *, size_t, int);
329extern int nfs3_removexattr (struct dentry *, const char *name);
330#else
331# define nfs3_listxattr NULL
332# define nfs3_getxattr NULL
333# define nfs3_setxattr NULL
334# define nfs3_removexattr NULL
335#endif
336
337/*
319 * linux/fs/nfs/direct.c 338 * linux/fs/nfs/direct.c
320 */ 339 */
321extern ssize_t nfs_direct_IO(int, struct kiocb *, const struct iovec *, loff_t, 340extern ssize_t nfs_direct_IO(int, struct kiocb *, const struct iovec *, loff_t,
@@ -329,6 +348,9 @@ extern ssize_t nfs_file_direct_write(struct kiocb *iocb, const char __user *buf,
329 * linux/fs/nfs/dir.c 348 * linux/fs/nfs/dir.c
330 */ 349 */
331extern struct inode_operations nfs_dir_inode_operations; 350extern struct inode_operations nfs_dir_inode_operations;
351#ifdef CONFIG_NFS_V3
352extern struct inode_operations nfs3_dir_inode_operations;
353#endif /* CONFIG_NFS_V3 */
332extern struct file_operations nfs_dir_operations; 354extern struct file_operations nfs_dir_operations;
333extern struct dentry_operations nfs_dentry_operations; 355extern struct dentry_operations nfs_dentry_operations;
334 356
@@ -450,6 +472,15 @@ static inline void nfs_readdata_free(struct nfs_read_data *p)
450extern void nfs_readdata_release(struct rpc_task *task); 472extern void nfs_readdata_release(struct rpc_task *task);
451 473
452/* 474/*
475 * linux/fs/nfs3proc.c
476 */
477#ifdef CONFIG_NFS_V3_ACL
478extern struct posix_acl *nfs3_proc_getacl(struct inode *inode, int type);
479extern int nfs3_proc_setacl(struct inode *inode, int type,
480 struct posix_acl *acl);
481#endif /* CONFIG_NFS_V3_ACL */
482
483/*
453 * linux/fs/mount_clnt.c 484 * linux/fs/mount_clnt.c
454 * (Used only by nfsroot module) 485 * (Used only by nfsroot module)
455 */ 486 */