afs: Use afs_extract_discard() rather than iov_iter_discard()

Use afs_extract_discard() rather than iov_iter_discard() as the former is a
wrapper for the latter, providing a place to put tracepoints.

Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
David Howells 2019-08-20 09:22:38 +01:00
Родитель 52c9c13078
Коммит 23a289137a
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -392,7 +392,7 @@ static int afs_deliver_fs_fetch_data(struct afs_call *call)
goto no_more_data; goto no_more_data;
/* Discard any excess data the server gave us */ /* Discard any excess data the server gave us */
iov_iter_discard(&call->iter, READ, req->actual_len - req->len); afs_extract_discard(call, req->actual_len - req->len);
call->unmarshall = 3; call->unmarshall = 3;
/* Fall through */ /* Fall through */
@ -1870,7 +1870,7 @@ static int afs_deliver_fs_get_capabilities(struct afs_call *call)
call->count = count; call->count = count;
call->count2 = count; call->count2 = count;
iov_iter_discard(&call->iter, READ, count * sizeof(__be32)); afs_extract_discard(call, count * sizeof(__be32));
call->unmarshall++; call->unmarshall++;
/* Fall through */ /* Fall through */

Просмотреть файл

@ -505,7 +505,7 @@ static int yfs_deliver_fs_fetch_data64(struct afs_call *call)
goto no_more_data; goto no_more_data;
/* Discard any excess data the server gave us */ /* Discard any excess data the server gave us */
iov_iter_discard(&call->iter, READ, req->actual_len - req->len); afs_extract_discard(call, req->actual_len - req->len);
call->unmarshall = 3; call->unmarshall = 3;
/* Fall through */ /* Fall through */
@ -2007,7 +2007,7 @@ static int yfs_deliver_fs_fetch_opaque_acl(struct afs_call *call)
acl->size = call->count2; acl->size = call->count2;
afs_extract_begin(call, acl->data, size); afs_extract_begin(call, acl->data, size);
} else { } else {
iov_iter_discard(&call->iter, READ, size); afs_extract_discard(call, size);
} }
call->unmarshall++; call->unmarshall++;
/* Fall through */ /* Fall through */
@ -2039,7 +2039,7 @@ static int yfs_deliver_fs_fetch_opaque_acl(struct afs_call *call)
acl->size = call->count2; acl->size = call->count2;
afs_extract_begin(call, acl->data, size); afs_extract_begin(call, acl->data, size);
} else { } else {
iov_iter_discard(&call->iter, READ, size); afs_extract_discard(call, size);
} }
call->unmarshall++; call->unmarshall++;
/* Fall through */ /* Fall through */