2011-06-13 20:42:42

by Benny Halevy

[permalink] [raw]
Subject: [PATCH] SQUASHME: pnfsd-lexp: return only nfs4errs from pnfsd_lexp_layout_get

Signed-off-by: Benny Halevy <[email protected]>
---
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