aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-08-10 17:45:10 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-10-09 17:18:34 -0400
commitaf22f94ae02ab9dd4fd7fe628c8434a59cc293be (patch)
treee3794a90fc0720c33266dfa682e264a4041e7a14 /include/linux
parentcd3758e37ddea66fccca7d93c4b601e8a2e51926 (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')
-rw-r--r--include/linux/nfs_fs.h5
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 *);
292extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr); 292extern int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr);
293extern int nfs_getattr(struct vfsmount *, struct dentry *, struct kstat *); 293extern int nfs_getattr(struct vfsmount *, struct dentry *, struct kstat *);
294extern int nfs_permission(struct inode *, int, struct nameidata *); 294extern int nfs_permission(struct inode *, int, struct nameidata *);
295extern int nfs_access_get_cached(struct inode *, struct rpc_cred *, struct nfs_access_entry *);
296extern void nfs_access_add_cache(struct inode *, struct nfs_access_entry *);
297extern void nfs_access_zap_cache(struct inode *inode);
298extern int nfs_open(struct inode *, struct file *); 295extern int nfs_open(struct inode *, struct file *);
299extern int nfs_release(struct inode *, struct file *); 296extern int nfs_release(struct inode *, struct file *);
300extern int nfs_attribute_timeout(struct inode *inode); 297extern int nfs_attribute_timeout(struct inode *inode);
@@ -382,6 +379,8 @@ extern const struct file_operations nfs_dir_operations;
382extern struct dentry_operations nfs_dentry_operations; 379extern struct dentry_operations nfs_dentry_operations;
383 380
384extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, struct nfs_fattr *fattr); 381extern int nfs_instantiate(struct dentry *dentry, struct nfs_fh *fh, struct nfs_fattr *fattr);
382extern int nfs_may_open(struct inode *inode, struct rpc_cred *cred, int openflags);
383extern void nfs_access_zap_cache(struct inode *inode);
385 384
386/* 385/*
387 * linux/fs/nfs/symlink.c 386 * linux/fs/nfs/symlink.c