From: Benny Halevy <benny@tonian.com>
To: linux-nfs@vger.kernel.org
Subject: [PATCH] SQUASHME: pnfsd-lexp: return only nfs4errs from pnfsd_lexp_layout_get
Date: Mon, 13 Jun 2011 16:42:38 -0400 [thread overview]
Message-ID: <1307997758-21235-1-git-send-email-benny@tonian.com> (raw)
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
reply other threads:[~2011-06-13 20:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1307997758-21235-1-git-send-email-benny@tonian.com \
--to=benny@tonian.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).