[PATCH 06/38] Revert "pnfsd: nfs4_preprocess_pnfs_ds_stateid"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This reverts commit 83d662282b879bc018b8a48229d67218d45b16fa.

Conflicts:
	fs/nfsd/state.h
---
 fs/nfsd/nfs4state.c | 12 ++----------
 fs/nfsd/state.h     |  2 --
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 84fa1af..b404d33 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -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(&current_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(&current_fh->fh_handle))
+		return 0;
 
 	if (ZERO_STATEID(stateid) || ONE_STATEID(stateid))
 		return check_special_stateids(net, current_fh, stateid, flags);
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 31d5d0f..788e5e8 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -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) {}
-- 
1.7.11.7

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux