]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcefa4235850b8cc4b5af0587637c7d2504422294
tree4ab6cffcfe993baa0afb2ab361a8c94ebfc3a444
parent09326d37e9e8c6f37c0ab2bf15b029a906332c34
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