nfsd: link returns nfserr_delay when breaking lease
authorCasey Bodley <cbodley@citi.umich.edu>
Fri, 3 Jun 2011 16:21:23 +0000 (12:21 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 6 Jun 2011 22:46:56 +0000 (18:46 -0400)
commit7d751f6f8c679f51b73d01a1b5269347a929004c
treed3197afcf1f8f241000eca04c45735fff973e70d
parentbe1f4084b4824301e640e81d63b6275cd99ee6a1
nfsd: link returns nfserr_delay when breaking lease

fix for commit 4795bb37effb7b8fe77e2d2034545d062d3788a8, nfsd: break
lease on unlink, link, and rename

if the LINK operation breaks a delegation, it returns NFS4ERR_NOENT
(which is not a valid error in rfc 5661) instead of NFS4ERR_DELAY.
the return value of nfsd_break_lease() in nfsd_link() must be
converted from host_err to err

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
Cc: stable@kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/vfs.c