summaryrefslogtreecommitdiff
path: root/fs/netfs/buffered_write.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2024-03-18 16:57:31 +0000
committerDavid Howells <dhowells@redhat.com>2024-05-01 18:07:35 +0100
commit7ba167c4c73ed96eb002c98a9d7d49317dfb0191 (patch)
tree1d7e6b524bef2ef45e53fc96a6ea49541dcf7f6a /fs/netfs/buffered_write.c
parent5a550a0c60706849d70aec7f211a7e51725adb1b (diff)
downloadlinux-7ba167c4c73ed96eb002c98a9d7d49317dfb0191.tar.gz
linux-7ba167c4c73ed96eb002c98a9d7d49317dfb0191.tar.bz2
linux-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 <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
Diffstat (limited to 'fs/netfs/buffered_write.c')
-rw-r--r--fs/netfs/buffered_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/netfs/buffered_write.c b/fs/netfs/buffered_write.c
index d8f66ce94575..eba49bfafe64 100644
--- a/fs/netfs/buffered_write.c
+++ b/fs/netfs/buffered_write.c
@@ -664,7 +664,7 @@ static void netfs_pages_written_back(struct netfs_io_request *wreq)
last = (wreq->start + wreq->len - 1) / PAGE_SIZE;
xas_for_each(&xas, folio, last) {
WARN(!folio_test_writeback(folio),
- "bad %zx @%llx page %lx %lx\n",
+ "bad %llx @%llx page %lx %lx\n",
wreq->len, wreq->start, folio->index, last);
if ((finfo = netfs_folio_info(folio))) {