Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb48241b authored by Zhao Hongjiang's avatar Zhao Hongjiang Committed by J. Bruce Fields
Browse files

nfsd: get rid of the unused functions in vfs



The fh_lock_parent(), nfsd_truncate(), nfsd_notify_change() and
nfsd_sync_dir() fuctions are neither implemented nor used, just remove
them.

Signed-off-by: default avatarZhao Hongjiang <zhaohongjiang@huawei.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 4488cc96
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -39,7 +39,6 @@
typedef int (*nfsd_dirop_t)(struct inode *, struct dentry *, int, int);
typedef int (*nfsd_dirop_t)(struct inode *, struct dentry *, int, int);


/* nfsd/vfs.c */
/* nfsd/vfs.c */
int		fh_lock_parent(struct svc_fh *, struct dentry *);
int		nfsd_racache_init(int);
int		nfsd_racache_init(int);
void		nfsd_racache_shutdown(void);
void		nfsd_racache_shutdown(void);
int		nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
int		nfsd_cross_mnt(struct svc_rqst *rqstp, struct dentry **dpp,
@@ -92,17 +91,13 @@ __be32 nfsd_remove(struct svc_rqst *,
				struct svc_fh *, char *, int);
				struct svc_fh *, char *, int);
__be32		nfsd_unlink(struct svc_rqst *, struct svc_fh *, int type,
__be32		nfsd_unlink(struct svc_rqst *, struct svc_fh *, int type,
				char *name, int len);
				char *name, int len);
int		nfsd_truncate(struct svc_rqst *, struct svc_fh *,
				unsigned long size);
__be32		nfsd_readdir(struct svc_rqst *, struct svc_fh *,
__be32		nfsd_readdir(struct svc_rqst *, struct svc_fh *,
			     loff_t *, struct readdir_cd *, filldir_t);
			     loff_t *, struct readdir_cd *, filldir_t);
__be32		nfsd_statfs(struct svc_rqst *, struct svc_fh *,
__be32		nfsd_statfs(struct svc_rqst *, struct svc_fh *,
				struct kstatfs *, int access);
				struct kstatfs *, int access);


int		nfsd_notify_change(struct inode *, struct iattr *);
__be32		nfsd_permission(struct svc_rqst *, struct svc_export *,
__be32		nfsd_permission(struct svc_rqst *, struct svc_export *,
				struct dentry *, int);
				struct dentry *, int);
int		nfsd_sync_dir(struct dentry *dp);


#if defined(CONFIG_NFSD_V2_ACL) || defined(CONFIG_NFSD_V3_ACL)
#if defined(CONFIG_NFSD_V2_ACL) || defined(CONFIG_NFSD_V3_ACL)
struct posix_acl *nfsd_get_posix_acl(struct svc_fh *, int);
struct posix_acl *nfsd_get_posix_acl(struct svc_fh *, int);