summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2013-03-23 19:22:45 (GMT)
committerTrond Myklebust <Trond.Myklebust@netapp.com>2013-03-27 16:44:40 (GMT)
commit6e3cf2415269894895074f139ef2e95ef14ddd5d (patch)
treef1c685aa5306e6e8290054f7474578f1cef098c8 /fs
parentccb46e2063fe0816c3f28a8d328a9bbac7e88648 (diff)
downloadlinux-fsl-qoriq-6e3cf2415269894895074f139ef2e95ef14ddd5d.tar.xz
NFSv4: Add a mapping for NFS4ERR_FILE_OPEN in nfs4_map_errors
With unlink is an asynchronous operation in the sillyrename case, it expects nfs4_async_handle_error() to map the error correctly. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs/nfs4proc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
index 06e5a72..3e7d42f 100644
--- a/fs/nfs/nfs4proc.c
+++ b/fs/nfs/nfs4proc.c
@@ -107,6 +107,8 @@ static int nfs4_map_errors(int err)
return -EPROTONOSUPPORT;
case -NFS4ERR_ACCESS:
return -EACCES;
+ case -NFS4ERR_FILE_OPEN:
+ return -EBUSY;
default:
dprintk("%s could not handle NFSv4 error %d\n",
__func__, -err);