fs/locks: change all *_conflict() functions to return bool.
authorNeilBrown <neilb@suse.com>
Thu, 29 Nov 2018 23:04:08 +0000 (10:04 +1100)
committerJeff Layton <jlayton@kernel.org>
Fri, 7 Dec 2018 11:49:24 +0000 (06:49 -0500)
commitc0e15908979d269a8263b0c0a222b894b9f403e9
tree07dd4976b69a6e4c98a83f0adf6fca2140474df4
parent16306a61d3b7c433c7a127ec6224867b88ece687
fs/locks: change all *_conflict() functions to return bool.

posix_locks_conflict() and flock_locks_conflict() both return int.
leases_conflict() returns bool.

This inconsistency will cause problems for the next patch if not
fixed.

So change posix_locks_conflict() and flock_locks_conflict() to return
bool.
Also change the locks_conflict() helper.

And convert some
   return (foo);
to
   return foo;

Signed-off-by: NeilBrown <neilb@suse.com>
Reviewed-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/locks.c