diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-08-10 17:45:10 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2007-10-09 17:18:34 -0400 |
commit | af22f94ae02ab9dd4fd7fe628c8434a59cc293be (patch) | |
tree | e3794a90fc0720c33266dfa682e264a4041e7a14 /include/linux/nfs_fs.h | |
parent | cd3758e37ddea66fccca7d93c4b601e8a2e51926 (diff) |
NFSv4: Simplify _nfs4_do_access()
Currently, _nfs4_do_access() is just a copy of nfs_do_access() with added
conversion of the open flags into an access mask. This patch merges the
duplicate functionality.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/nfs_fs.h')
-rw-r--r-- | include/linux/nfs_fs.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index 5c200fd8c652..5b42fef0baf0 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
@@ -292,9 +292,6 @@ extern int nfs_refresh_inode(struct inode *, struct nfs_fattr *); | |||
292 | extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr); | 292 | extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr); |
293 | extern int nfs_getattr(struct vfsmount *, struct dentry *, struct kstat *); | 293 | extern int nfs_getattr(struct vfsmount *, struct dentry *, struct kstat *); |
294 | extern int nfs_permission(struct inode *, int, struct nameidata *); | 294 | extern int nfs_permission(struct inode *, int, struct nameidata *); |
295 | extern int nfs_access_get_cached(struct inode *, struct rpc_cred *, struct nfs_access_entry *); | ||
296 | extern void nfs_access_add_cache(struct inode *, struct nfs_access_entry *); | ||
297 | extern void nfs_access_zap_cache(struct inode *inode); | ||
298 | extern int nfs_open(struct inode *, struct file *); | 295 | extern int nfs_open(struct inode *, struct file *); |
299 | extern int nfs_release(struct inode *, struct file *); | 296 | extern int nfs_release(struct inode *, struct file *); |
300 | extern int nfs_attribute_timeout(struct inode *inode); | 297 | extern int nfs_attribute_timeout(struct inode *inode); |
@@ -382,6 +379,8 @@ extern const struct file_operations nfs_dir_operations; | |||
382 | extern struct dentry_operations nfs_dentry_operations; | 379 | extern struct dentry_operations nfs_dentry_operations; |
383 | 380 | ||
384 | extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, struct nfs_fattr *fattr); | 381 | extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, struct nfs_fattr *fattr); |
382 | extern int nfs_may_open(struct inode *inode, struct rpc_cred *cred, int openflags); | ||
383 | extern void nfs_access_zap_cache(struct inode *inode); | ||
385 | 384 | ||
386 | /* | 385 | /* |
387 | * linux/fs/nfs/symlink.c | 386 | * linux/fs/nfs/symlink.c |