diff options
author | Jeff Layton <jlayton@kernel.org> | 2024-02-01 02:01:42 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2024-02-02 14:09:04 +0300 |
commit | 0e9876d8e88d81a35742e90048ab3784c49b910b (patch) | |
tree | c9bc6758e878500c32e237f0ec67ce384ed5d98e /include | |
parent | 6613476e225e090cc9aad49be7fa504e290dd33d (diff) | |
download | linux-0e9876d8e88d81a35742e90048ab3784c49b910b.tar.xz |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/filelock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/filelock.h b/include/linux/filelock.h index 95e868e09e29..085ff6ba0653 100644 --- a/include/linux/filelock.h +++ b/include/linux/filelock.h @@ -98,7 +98,7 @@ struct file_lock { fl_owner_t fl_owner; unsigned int fl_flags; unsigned char fl_type; - unsigned int fl_pid; + pid_t fl_pid; int fl_link_cpu; /* what cpu's list is this on? */ wait_queue_head_t fl_wait; struct file *fl_file; |