netfs: Switch to using unsigned long long rather than loff_t
authorDavid Howells <dhowells@redhat.com>
Mon, 18 Mar 2024 16:57:31 +0000 (16:57 +0000)
committerDavid Howells <dhowells@redhat.com>
Wed, 1 May 2024 17:07:35 +0000 (18:07 +0100)
commit7ba167c4c73ed96eb002c98a9d7d49317dfb0191
tree1d7e6b524bef2ef45e53fc96a6ea49541dcf7f6a
parent5a550a0c60706849d70aec7f211a7e51725adb1b
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 <dhowells@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
cc: Ilya Dryomov <idryomov@gmail.com>
cc: Xiubo Li <xiubli@redhat.com>
cc: netfs@lists.linux.dev
cc: ceph-devel@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
fs/cachefiles/io.c
fs/ceph/addr.c
fs/netfs/buffered_read.c
fs/netfs/buffered_write.c
fs/netfs/io.c
fs/netfs/main.c
fs/netfs/output.c
include/linux/netfs.h
include/trace/events/netfs.h