diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-30 16:05:24 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-30 19:06:46 -0400 |
commit | 1c606fb74c758beafd98cbad9a9133eadeec2371 (patch) | |
tree | e8c057f32df3ee0a8e0341ae4ef2b23809a83da3 /fs/nfs/inode.c | |
parent | ddda8e0aa8b955e20cb80908189bfa154ab54837 (diff) |
NFS: Convert v3 into a module
This patch exports symbols and moves over the final structures needed by
the v3 module. In addition, I also switch over to using IS_ENABLED() to
check if CONFIG_NFS_V3 or CONFIG_NFS_V3_MODULE are set.
The module (nfs3.ko) will be created in the same directory as nfs.ko and
will be automatically loaded the first time you try to mount over NFS v3.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index f358b976e9e6..78dfc3e895ec 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -186,6 +186,7 @@ void nfs_zap_acl_cache(struct inode *inode) | |||
186 | NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_ACL; | 186 | NFS_I(inode)->cache_validity &= ~NFS_INO_INVALID_ACL; |
187 | spin_unlock(&inode->i_lock); | 187 | spin_unlock(&inode->i_lock); |
188 | } | 188 | } |
189 | EXPORT_SYMBOL_GPL(nfs_zap_acl_cache); | ||
189 | 190 | ||
190 | void nfs_invalidate_atime(struct inode *inode) | 191 | void nfs_invalidate_atime(struct inode *inode) |
191 | { | 192 | { |
@@ -847,6 +848,7 @@ int nfs_revalidate_inode(struct nfs_server *server, struct inode *inode) | |||
847 | return NFS_STALE(inode) ? -ESTALE : 0; | 848 | return NFS_STALE(inode) ? -ESTALE : 0; |
848 | return __nfs_revalidate_inode(server, inode); | 849 | return __nfs_revalidate_inode(server, inode); |
849 | } | 850 | } |
851 | EXPORT_SYMBOL_GPL(nfs_revalidate_inode); | ||
850 | 852 | ||
851 | static int nfs_invalidate_mapping(struct inode *inode, struct address_space *mapping) | 853 | static int nfs_invalidate_mapping(struct inode *inode, struct address_space *mapping) |
852 | { | 854 | { |
@@ -1213,6 +1215,7 @@ int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
1213 | spin_unlock(&inode->i_lock); | 1215 | spin_unlock(&inode->i_lock); |
1214 | return status; | 1216 | return status; |
1215 | } | 1217 | } |
1218 | EXPORT_SYMBOL_GPL(nfs_post_op_update_inode); | ||
1216 | 1219 | ||
1217 | /** | 1220 | /** |
1218 | * nfs_post_op_update_inode_force_wcc - try to update the inode attribute cache | 1221 | * nfs_post_op_update_inode_force_wcc - try to update the inode attribute cache |