summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
203a8c8)
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>
status = nfserr_stale_stateid;
if (STALE_STATEID(stateid))
goto out;
status = nfserr_stale_stateid;
if (STALE_STATEID(stateid))
goto out;
+ status = nfserr_bad_stateid;
if (!is_delegation_stateid(stateid))
goto out;
if (!is_delegation_stateid(stateid))
goto out;
- status = nfserr_bad_stateid;
dp = find_delegation_stateid(inode, stateid);
if (!dp)
goto out;
dp = find_delegation_stateid(inode, stateid);
if (!dp)
goto out;