nfsd4: fail when delegreturn gets a non-delegation stateid
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 21 Feb 2009 21:32:28 +0000 (13:32 -0800)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 18 Mar 2009 21:38:37 +0000 (17:38 -0400)
commit7e0f7cf582abd6c85232331dfe726a4e4b0fd98e
treea6a8aa7d51538377df5e2ce076c347ccd63b6b5b
parent203a8c8e66278a5936a230edaac29017e50c88fb
nfsd4: fail when delegreturn gets a non-delegation stateid

Previous cleanup reveals an obvious (though harmless) bug: when
delegreturn gets a stateid that isn't for a delegation, it should return
an error rather than doing nothing.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
fs/nfsd/nfs4state.c