aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2012-07-30 16:05:23 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-07-30 19:06:41 -0400
commitddda8e0aa8b955e20cb80908189bfa154ab54837 (patch)
treeff5b1041ce86c76519c1b824161ce5d7ad2e49db /fs/nfs/inode.c
parentfac1e8e4ef417e958060a6c3a061cc1a180bd8ae (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.c10
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}
196EXPORT_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)
438out: 439out:
439 return error; 440 return error;
440} 441}
442EXPORT_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}
501EXPORT_SYMBOL_GPL(nfs_setattr_update_inode);
499 502
500int nfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) 503int 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)
535out: 538out:
536 return err; 539 return err;
537} 540}
541EXPORT_SYMBOL_GPL(nfs_getattr);
538 542
539static void nfs_init_lock_context(struct nfs_lock_context *l_ctx) 543static 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}
630EXPORT_SYMBOL_GPL(nfs_close_context);
626 631
627struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, fmode_t f_mode) 632struct 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}
1036EXPORT_SYMBOL_GPL(nfs_fattr_init);
1031 1037
1032struct nfs_fattr *nfs_alloc_fattr(void) 1038struct 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}
1047EXPORT_SYMBOL_GPL(nfs_alloc_fattr);
1041 1048
1042struct nfs_fh *nfs_alloc_fhandle(void) 1049struct 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}
1058EXPORT_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}
1179EXPORT_SYMBOL_GPL(nfs_refresh_inode);
1171 1180
1172static int nfs_post_op_update_inode_locked(struct inode *inode, struct nfs_fattr *fattr) 1181static 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}
1267EXPORT_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