aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cachefiles/io.c
diff options
context:
space:
mode:
authorDavid Howells <[email protected]>2024-03-18 16:57:31 +0000
committerDavid Howells <[email protected]>2024-05-01 17:07:35 +0000
commit7ba167c4c73ed96eb002c98a9d7d49317dfb0191 (patch)
tree1d7e6b524bef2ef45e53fc96a6ea49541dcf7f6a /fs/cachefiles/io.c
parentmm: Export writeback_iter() (diff)
downloadkernel-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/cachefiles/io.c')
-rw-r--r--fs/cachefiles/io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cachefiles/io.c b/fs/cachefiles/io.c
index 1d685357e67f..5ba5c7814fe4 100644
--- a/fs/cachefiles/io.c
+++ b/fs/cachefiles/io.c
@@ -493,7 +493,7 @@ out_no_object:
* boundary as appropriate.
*/
static enum netfs_io_source cachefiles_prepare_read(struct netfs_io_subrequest *subreq,
- loff_t i_size)
+ unsigned long long i_size)
{
return cachefiles_do_prepare_read(&subreq->rreq->cache_resources,
subreq->start, &subreq->len, i_size,