linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] SQUASHME: pnfsd-lexp: return only nfs4errs from pnfsd_lexp_layout_get
@ 2011-06-13 20:42 Benny Halevy
  0 siblings, 0 replies; only message in thread
From: Benny Halevy @ 2011-06-13 20:42 UTC (permalink / raw)
  To: linux-nfs

Signed-off-by: Benny Halevy <benny@tonian.com>
---
 fs/nfsd/pnfsd_lexp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfsd/pnfsd_lexp.c b/fs/nfsd/pnfsd_lexp.c
index 4d8bceb..52ab2d2 100644
--- a/fs/nfsd/pnfsd_lexp.c
+++ b/fs/nfsd/pnfsd_lexp.c
@@ -156,7 +156,7 @@ pnfsd_lexp_layout_get(struct inode *inode,
 
 	layout = kzalloc(sizeof(*layout), GFP_KERNEL);
 	if (layout == NULL) {
-		rc = -ENOMEM;
+		rc = NFS4ERR_DELAY;
 		goto error;
 	}
 
@@ -173,7 +173,7 @@ pnfsd_lexp_layout_get(struct inode *inode,
 
 	fhp = kmalloc(sizeof(*fhp), GFP_KERNEL);
 	if (fhp == NULL) {
-		rc = -ENOMEM;
+		rc = NFS4ERR_DELAY;
 		goto error;
 	}
 
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-13 20:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-13 20:42 [PATCH] SQUASHME: pnfsd-lexp: return only nfs4errs from pnfsd_lexp_layout_get Benny Halevy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).