mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
filelock: fl_pid field should be signed int
This field has been unsigned for a very long time, but most users of the struct file_lock and the file locking internals themselves treat it as a signed value. Change it to be pid_t (which is a signed int). Signed-off-by: Jeff Layton <jlayton@kernel.org> Link: https://lore.kernel.org/r/20240131-flsplit-v3-1-c6129007ee8d@kernel.org Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
6613476e22
commit
0e9876d8e8
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ struct file_lock {
|
||||||
fl_owner_t fl_owner;
|
fl_owner_t fl_owner;
|
||||||
unsigned int fl_flags;
|
unsigned int fl_flags;
|
||||||
unsigned char fl_type;
|
unsigned char fl_type;
|
||||||
unsigned int fl_pid;
|
pid_t fl_pid;
|
||||||
int fl_link_cpu; /* what cpu's list is this on? */
|
int fl_link_cpu; /* what cpu's list is this on? */
|
||||||
wait_queue_head_t fl_wait;
|
wait_queue_head_t fl_wait;
|
||||||
struct file *fl_file;
|
struct file *fl_file;
|
||||||
|
|
Loading…
Reference in a new issue