diff options
| author | David Howells <[email protected]> | 2024-03-18 16:57:31 +0000 |
|---|---|---|
| committer | David Howells <[email protected]> | 2024-05-01 17:07:35 +0000 |
| commit | 7ba167c4c73ed96eb002c98a9d7d49317dfb0191 (patch) | |
| tree | 1d7e6b524bef2ef45e53fc96a6ea49541dcf7f6a /fs/netfs/buffered_read.c | |
| parent | mm: Export writeback_iter() (diff) | |
| download | kernel-7ba167c4c73ed96eb002c98a9d7d49317dfb0191.tar.gz kernel-7ba167c4c73ed96eb002c98a9d7d49317dfb0191.zip | |
netfs: Switch to using unsigned long long rather than loff_t
Switch to using unsigned long long rather than loff_t in netfslib to avoid
problems with the sign flipping in the maths when we're dealing with the
byte at position 0x7fffffffffffffff.
Signed-off-by: David Howells <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
cc: Ilya Dryomov <[email protected]>
cc: Xiubo Li <[email protected]>
cc: [email protected]
cc: [email protected]
cc: [email protected]
Diffstat (limited to 'fs/netfs/buffered_read.c')
| -rw-r--r-- | fs/netfs/buffered_read.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/netfs/buffered_read.c b/fs/netfs/buffered_read.c index 1622cce535a3..47603f08680e 100644 --- a/fs/netfs/buffered_read.c +++ b/fs/netfs/buffered_read.c @@ -130,7 +130,9 @@ void netfs_rreq_unlock_folios(struct netfs_io_request *rreq) } static void netfs_cache_expand_readahead(struct netfs_io_request *rreq, - loff_t *_start, size_t *_len, loff_t i_size) + unsigned long long *_start, + unsigned long long *_len, + unsigned long long i_size) { struct netfs_cache_resources *cres = &rreq->cache_resources; |
