diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-30 16:05:23 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-30 19:06:41 -0400 |
commit | ddda8e0aa8b955e20cb80908189bfa154ab54837 (patch) | |
tree | ff5b1041ce86c76519c1b824161ce5d7ad2e49db /fs/nfs/inode.c | |
parent | fac1e8e4ef417e958060a6c3a061cc1a180bd8ae (diff) |
NFS: Convert v2 into a module
The module (nfs2.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 v2.
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 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index a6ffa4be2a03..f358b976e9e6 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -193,6 +193,7 @@ void nfs_invalidate_atime(struct inode *inode) | |||
193 | NFS_I(inode)->cache_validity |= NFS_INO_INVALID_ATIME; | 193 | NFS_I(inode)->cache_validity |= NFS_INO_INVALID_ATIME; |
194 | spin_unlock(&inode->i_lock); | 194 | spin_unlock(&inode->i_lock); |
195 | } | 195 | } |
196 | EXPORT_SYMBOL_GPL(nfs_invalidate_atime); | ||
196 | 197 | ||
197 | /* | 198 | /* |
198 | * Invalidate, but do not unhash, the inode. | 199 | * Invalidate, but do not unhash, the inode. |
@@ -438,6 +439,7 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr) | |||
438 | out: | 439 | out: |
439 | return error; | 440 | return error; |
440 | } | 441 | } |
442 | EXPORT_SYMBOL_GPL(nfs_setattr); | ||
441 | 443 | ||
442 | /** | 444 | /** |
443 | * nfs_vmtruncate - unmap mappings "freed" by truncate() syscall | 445 | * nfs_vmtruncate - unmap mappings "freed" by truncate() syscall |
@@ -496,6 +498,7 @@ void nfs_setattr_update_inode(struct inode *inode, struct iattr *attr) | |||
496 | nfs_vmtruncate(inode, attr->ia_size); | 498 | nfs_vmtruncate(inode, attr->ia_size); |
497 | } | 499 | } |
498 | } | 500 | } |
501 | EXPORT_SYMBOL_GPL(nfs_setattr_update_inode); | ||
499 | 502 | ||
500 | int nfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) | 503 | int nfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) |
501 | { | 504 | { |
@@ -535,6 +538,7 @@ int nfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) | |||
535 | out: | 538 | out: |
536 | return err; | 539 | return err; |
537 | } | 540 | } |
541 | EXPORT_SYMBOL_GPL(nfs_getattr); | ||
538 | 542 | ||
539 | static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) | 543 | static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) |
540 | { | 544 | { |
@@ -623,6 +627,7 @@ void nfs_close_context(struct nfs_open_context *ctx, int is_sync) | |||
623 | return; | 627 | return; |
624 | nfs_revalidate_inode(server, inode); | 628 | nfs_revalidate_inode(server, inode); |
625 | } | 629 | } |
630 | EXPORT_SYMBOL_GPL(nfs_close_context); | ||
626 | 631 | ||
627 | struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, fmode_t f_mode) | 632 | struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, fmode_t f_mode) |
628 | { | 633 | { |
@@ -1028,6 +1033,7 @@ void nfs_fattr_init(struct nfs_fattr *fattr) | |||
1028 | fattr->owner_name = NULL; | 1033 | fattr->owner_name = NULL; |
1029 | fattr->group_name = NULL; | 1034 | fattr->group_name = NULL; |
1030 | } | 1035 | } |
1036 | EXPORT_SYMBOL_GPL(nfs_fattr_init); | ||
1031 | 1037 | ||
1032 | struct nfs_fattr *nfs_alloc_fattr(void) | 1038 | struct nfs_fattr *nfs_alloc_fattr(void) |
1033 | { | 1039 | { |
@@ -1038,6 +1044,7 @@ struct nfs_fattr *nfs_alloc_fattr(void) | |||
1038 | nfs_fattr_init(fattr); | 1044 | nfs_fattr_init(fattr); |
1039 | return fattr; | 1045 | return fattr; |
1040 | } | 1046 | } |
1047 | EXPORT_SYMBOL_GPL(nfs_alloc_fattr); | ||
1041 | 1048 | ||
1042 | struct nfs_fh *nfs_alloc_fhandle(void) | 1049 | struct nfs_fh *nfs_alloc_fhandle(void) |
1043 | { | 1050 | { |
@@ -1048,6 +1055,7 @@ struct nfs_fh *nfs_alloc_fhandle(void) | |||
1048 | fh->size = 0; | 1055 | fh->size = 0; |
1049 | return fh; | 1056 | return fh; |
1050 | } | 1057 | } |
1058 | EXPORT_SYMBOL_GPL(nfs_alloc_fhandle); | ||
1051 | 1059 | ||
1052 | #ifdef NFS_DEBUG | 1060 | #ifdef NFS_DEBUG |
1053 | /* | 1061 | /* |
@@ -1168,6 +1176,7 @@ int nfs_refresh_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
1168 | 1176 | ||
1169 | return status; | 1177 | return status; |
1170 | } | 1178 | } |
1179 | EXPORT_SYMBOL_GPL(nfs_refresh_inode); | ||
1171 | 1180 | ||
1172 | static int nfs_post_op_update_inode_locked(struct inode *inode, struct nfs_fattr *fattr) | 1181 | static int nfs_post_op_update_inode_locked(struct inode *inode, struct nfs_fattr *fattr) |
1173 | { | 1182 | { |
@@ -1255,6 +1264,7 @@ out_noforce: | |||
1255 | spin_unlock(&inode->i_lock); | 1264 | spin_unlock(&inode->i_lock); |
1256 | return status; | 1265 | return status; |
1257 | } | 1266 | } |
1267 | EXPORT_SYMBOL_GPL(nfs_post_op_update_inode_force_wcc); | ||
1258 | 1268 | ||
1259 | /* | 1269 | /* |
1260 | * Many nfs protocol calls return the new file attributes after | 1270 | * Many nfs protocol calls return the new file attributes after |