summaryrefslogtreecommitdiffstats
path: root/fs/afs/fsclient.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2017-03-16 16:27:46 +0000
committerDavid Howells <dhowells@redhat.com>2017-03-16 16:27:46 +0000
commit6a0e3999e5cb3daa0468073fcdee0767422a4056 (patch)
tree02039f55658e91cebdca8d426ca2d8499458fc6e /fs/afs/fsclient.c
parent29f069853287dcb46eaf45a50dbf1232c1444ac6 (diff)
downloadop-kernel-dev-6a0e3999e5cb3daa0468073fcdee0767422a4056.zip
op-kernel-dev-6a0e3999e5cb3daa0468073fcdee0767422a4056.tar.gz
afs: Make struct afs_read::remain 64-bit
Make struct afs_read::remain 64-bit so that it can handle huge transfers if we ever request them or the server decides to give us a bit extra data (the other fields there are already 64-bit). Signed-off-by: David Howells <dhowells@redhat.com> Tested-by: Marc Dionne <marc.dionne@auristor.com>
Diffstat (limited to 'fs/afs/fsclient.c')
-rw-r--r--fs/afs/fsclient.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/afs/fsclient.c b/fs/afs/fsclient.c
index 4314f9e..0778c5b 100644
--- a/fs/afs/fsclient.c
+++ b/fs/afs/fsclient.c
@@ -321,7 +321,7 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call)
void *buffer;
int ret;
- _enter("{%u,%zu/%u;%u/%llu}",
+ _enter("{%u,%zu/%u;%llu/%llu}",
call->unmarshall, call->offset, call->count,
req->remain, req->actual_len);
@@ -379,7 +379,7 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call)
/* extract the returned data */
case 3:
- _debug("extract data %u/%llu %zu/%u",
+ _debug("extract data %llu/%llu %zu/%u",
req->remain, req->actual_len, call->offset, call->count);
buffer = kmap(req->pages[req->index]);
@@ -405,9 +405,9 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call)
/* Discard any excess data the server gave us */
begin_discard:
case 4:
- size = min_t(size_t, sizeof(afs_discard_buffer), req->remain);
+ size = min_t(loff_t, sizeof(afs_discard_buffer), req->remain);
call->count = size;
- _debug("extract discard %u/%llu %zu/%u",
+ _debug("extract discard %llu/%llu %zu/%u",
req->remain, req->actual_len, call->offset, call->count);
call->offset = 0;
OpenPOWER on IntegriCloud