locks: convert an -EINVAL return to a BUG
authorJ. Bruce Fields <bfields@citi.umich.edu>
Sat, 30 Jun 2007 16:40:32 +0000 (12:40 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 18 Jul 2007 23:09:27 +0000 (19:09 -0400)
commitd2ab0b0c4c2570921a9ec1eff1e3a5143e05b231
tree3ca5586f765066acae9e2c20eb5578ce3220e4e8
parent87250dd26a34c65ae31d08837174222889007641
locks: convert an -EINVAL return to a BUG

There's no point trying to return an error in these cases, which all represent
bugs in the callers.

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