locks: setlease cleanup
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Aug 2011 14:59:49 +0000 (10:59 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 19 Aug 2011 17:25:35 +0000 (13:25 -0400)
commitc1f24ef4ed46f58ea5e524a2364c93b6847fb164
tree863e467d36dc13d5012076d9fd31e2ffc86ee0d8
parent778fc546f749c588aa2f6cd50215d2715c374252
locks: setlease cleanup

There's an incorrect comment here.  Also clean up the logic: the
"rdlease" and "wrlease" locals are confusingly named, and don't really
add anything since we can make a decision as soon as we hit one of these
cases.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/locks.c