locks: make posix_test_lock() interface more consistent
authorJ. Bruce Fields <bfields@citi.umich.edu>
Fri, 11 May 2007 20:09:32 +0000 (16:09 -0400)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Wed, 18 Jul 2007 23:17:19 +0000 (19:17 -0400)
commit6d34ac199a4af5c678a3a8f3275aeb2586b72da3
tree4ab6cffcfe993baa0afb2ab361a8c94ebfc3a444
parent370f6599e8bc03fd9fc6d1a1be00ae0c6373ca59
locks: make posix_test_lock() interface more consistent

Since posix_test_lock(), like fcntl() and ->lock(), indicates absence or
presence of a conflict lock by setting fl_type to, respectively, F_UNLCK
or something other than F_UNLCK, the return value is no longer needed.

Signed-off-by: "J. Bruce Fields" <bfields@citi.umich.edu>
fs/locks.c
fs/nfs/file.c
include/linux/fs.h