@@ -3551,16 +3551,8 @@ __be32 nfsd4_lookup_stateid(stateid_t *stateid, unsigned char typemask,
if (grace_disallows_io(net, ino))
return nfserr_grace;
-#if defined(CONFIG_PNFSD)
- if (pnfs_fh_is_ds(¤t_fh->fh_handle)) {
- if (ZERO_STATEID(stateid) || ONE_STATEID(stateid))
- status = nfserr_bad_stateid;
- else
- status = nfs4_preprocess_pnfs_ds_stateid(current_fh,
- stateid);
- goto out;
- }
-#endif /* CONFIG_PNFSD */
+ if (pnfs_fh_is_ds(¤t_fh->fh_handle))
+ return 0;
if (ZERO_STATEID(stateid) || ONE_STATEID(stateid))
return check_special_stateids(net, current_fh, stateid, flags);
@@ -531,8 +531,6 @@ extern struct nfs4_client_reclaim *nfs4_client_to_reclaim(const char *name,
extern void pnfs_expire_client(struct nfs4_client *);
extern void release_pnfs_ds_dev_list(struct nfs4_ol_stateid *);
extern void nfs4_pnfs_state_init(void);
-extern void nfs4_ds_get_verifier(stateid_t *, struct super_block *, u32 *);
-extern int nfs4_preprocess_pnfs_ds_stateid(struct svc_fh *, stateid_t *);
extern void pnfsd_roc(struct nfs4_client *clp, struct nfs4_file *fp);
#else /* CONFIG_PNFSD */
static inline void nfsd4_free_pnfs_slabs(void) {}