filelock: convert __locks_insert_block, conflict and deadlock checks to use file_lock...
authorJeff Layton <jlayton@kernel.org>
Wed, 31 Jan 2024 23:02:06 +0000 (18:02 -0500)
committerChristian Brauner <brauner@kernel.org>
Mon, 5 Feb 2024 12:11:39 +0000 (13:11 +0100)
commitb6be3714005c3933886be71011f19119e219e77c
tree4a84b9ca1ca759429b20aa5bdb8794d7bed13971
parent1a62c22a156f7235acdbdb7ca0dcddf5062744b0
filelock: convert __locks_insert_block, conflict and deadlock checks to use file_lock_core

Have both __locks_insert_block and the deadlock and conflict checking
functions take a struct file_lock_core pointer instead of a struct
file_lock one. Also, change posix_locks_deadlock to return bool.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20240131-flsplit-v3-25-c6129007ee8d@kernel.org
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/locks.c