btrfs: use pgoff_t for page index variables
authorDavid Sterba <dsterba@suse.com>
Fri, 27 Jun 2025 11:01:17 +0000 (13:01 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 21 Jul 2025 21:58:05 +0000 (23:58 +0200)
commitab5fcbb1adc8e44ed027b0a73f484fbc8d528b94
tree486b149c31db8b8965f3498602a74a9cef2d399c
parentafd1dacbd0964c7d36a9057c39c168fe7fbb5196
btrfs: use pgoff_t for page index variables

Any conversion of offsets in the logical or the physical mapping space
of the pages is done by a shift and the target type should be pgoff_t
(type of struct page::index). Fix the locations where it's still
unsigned long.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/compression.c
fs/btrfs/extent_io.c
fs/btrfs/file.c
fs/btrfs/free-space-cache.c
fs/btrfs/inode.c
fs/btrfs/ioctl.c
fs/btrfs/relocation.c
fs/btrfs/tests/extent-io-tests.c