diff options
-rw-r--r-- | fs/nfs/nfs3_fs.h | 19 | ||||
-rw-r--r-- | fs/nfs/nfs3super.c | 1 | ||||
-rw-r--r-- | include/linux/nfs_fs.h | 33 |
3 files changed, 20 insertions, 33 deletions
diff --git a/fs/nfs/nfs3_fs.h b/fs/nfs/nfs3_fs.h index 6599e0dcd69f..333ae4068506 100644 --- a/fs/nfs/nfs3_fs.h +++ b/fs/nfs/nfs3_fs.h | |||
@@ -6,6 +6,25 @@ | |||
6 | #ifndef __LINUX_FS_NFS_NFS3_FS_H | 6 | #ifndef __LINUX_FS_NFS_NFS3_FS_H |
7 | #define __LINUX_FS_NFS_NFS3_FS_H | 7 | #define __LINUX_FS_NFS_NFS3_FS_H |
8 | 8 | ||
9 | /* | ||
10 | * nfs3acl.c | ||
11 | */ | ||
12 | #ifdef CONFIG_NFS_V3_ACL | ||
13 | extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type); | ||
14 | extern int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type); | ||
15 | extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, | ||
16 | struct posix_acl *dfacl); | ||
17 | extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t); | ||
18 | extern const struct xattr_handler *nfs3_xattr_handlers[]; | ||
19 | #else | ||
20 | static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, | ||
21 | struct posix_acl *dfacl) | ||
22 | { | ||
23 | return 0; | ||
24 | } | ||
25 | #define nfs3_listxattr NULL | ||
26 | #endif /* CONFIG_NFS_V3_ACL */ | ||
27 | |||
9 | /* nfs3client.c */ | 28 | /* nfs3client.c */ |
10 | struct nfs_server *nfs3_create_server(struct nfs_mount_info *, struct nfs_subversion *); | 29 | struct nfs_server *nfs3_create_server(struct nfs_mount_info *, struct nfs_subversion *); |
11 | struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *, | 30 | struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *, |
diff --git a/fs/nfs/nfs3super.c b/fs/nfs/nfs3super.c index d6a98949af19..6af29c2da352 100644 --- a/fs/nfs/nfs3super.c +++ b/fs/nfs/nfs3super.c | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <linux/module.h> | 4 | #include <linux/module.h> |
5 | #include <linux/nfs_fs.h> | 5 | #include <linux/nfs_fs.h> |
6 | #include "internal.h" | 6 | #include "internal.h" |
7 | #include "nfs3_fs.h" | ||
7 | #include "nfs.h" | 8 | #include "nfs.h" |
8 | 9 | ||
9 | static struct nfs_subversion nfs_v3 = { | 10 | static struct nfs_subversion nfs_v3 = { |
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index fd334d4b0d41..28d649054d5f 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -443,22 +443,6 @@ static inline struct rpc_cred *nfs_file_cred(struct file *file) | |||
443 | } | 443 | } |
444 | 444 | ||
445 | /* | 445 | /* |
446 | * linux/fs/nfs/xattr.c | ||
447 | */ | ||
448 | #ifdef CONFIG_NFS_V3_ACL | ||
449 | extern ssize_t nfs3_listxattr(struct dentry *, char *, size_t); | ||
450 | extern ssize_t nfs3_getxattr(struct dentry *, const char *, void *, size_t); | ||
451 | extern int nfs3_setxattr(struct dentry *, const char *, | ||
452 | const void *, size_t, int); | ||
453 | extern int nfs3_removexattr (struct dentry *, const char *name); | ||
454 | #else | ||
455 | # define nfs3_listxattr NULL | ||
456 | # define nfs3_getxattr NULL | ||
457 | # define nfs3_setxattr NULL | ||
458 | # define nfs3_removexattr NULL | ||
459 | #endif | ||
460 | |||
461 | /* | ||
462 | * linux/fs/nfs/direct.c | 446 | * linux/fs/nfs/direct.c |
463 | */ | 447 | */ |
464 | extern ssize_t nfs_direct_IO(int, struct kiocb *, struct iov_iter *, loff_t); | 448 | extern ssize_t nfs_direct_IO(int, struct kiocb *, struct iov_iter *, loff_t); |
@@ -549,23 +533,6 @@ extern int nfs_readpage_async(struct nfs_open_context *, struct inode *, | |||
549 | struct page *); | 533 | struct page *); |
550 | 534 | ||
551 | /* | 535 | /* |
552 | * linux/fs/nfs3proc.c | ||
553 | */ | ||
554 | #ifdef CONFIG_NFS_V3_ACL | ||
555 | extern struct posix_acl *nfs3_get_acl(struct inode *inode, int type); | ||
556 | extern int nfs3_set_acl(struct inode *inode, struct posix_acl *acl, int type); | ||
557 | extern int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, | ||
558 | struct posix_acl *dfacl); | ||
559 | extern const struct xattr_handler *nfs3_xattr_handlers[]; | ||
560 | #else | ||
561 | static inline int nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl, | ||
562 | struct posix_acl *dfacl) | ||
563 | { | ||
564 | return 0; | ||
565 | } | ||
566 | #endif /* CONFIG_NFS_V3_ACL */ | ||
567 | |||
568 | /* | ||
569 | * inline functions | 536 | * inline functions |
570 | */ | 537 | */ |
571 | 538 | ||