From: Trond Myklebust Date: Sat, 23 Mar 2013 19:22:45 +0000 (-0400) Subject: NFSv4: Add a mapping for NFS4ERR_FILE_OPEN in nfs4_map_errors X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e3cf2415269894895074f139ef2e95ef14ddd5d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 06e5a72b5fa2..3e7d42fb775c 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);