mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-22 23:13:01 +02:00
netfs: Fix netfs_unbuffered_read() to return ssize_t rather than int
Fix netfs_unbuffered_read() to return an ssize_t rather than an int as netfs_wait_for_read() returns ssize_t and this gets implicitly truncated. Signed-off-by: David Howells <dhowells@redhat.com> Link: https://lore.kernel.org/r/20250314164201.1993231-5-dhowells@redhat.com Acked-by: "Paulo Alcantara (Red Hat)" <pc@manguebit.com> cc: Jeff Layton <jlayton@kernel.org> cc: Viacheslav Dubeyko <slava@dubeyko.com> cc: Alex Markuze <amarkuze@redhat.com> cc: Ilya Dryomov <idryomov@gmail.com> cc: ceph-devel@vger.kernel.org cc: linux-fsdevel@vger.kernel.org Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
15e9aaf9fc
commit
07c574eb53
|
@ -125,9 +125,9 @@ static int netfs_dispatch_unbuffered_reads(struct netfs_io_request *rreq)
|
||||||
* Perform a read to an application buffer, bypassing the pagecache and the
|
* Perform a read to an application buffer, bypassing the pagecache and the
|
||||||
* local disk cache.
|
* local disk cache.
|
||||||
*/
|
*/
|
||||||
static int netfs_unbuffered_read(struct netfs_io_request *rreq, bool sync)
|
static ssize_t netfs_unbuffered_read(struct netfs_io_request *rreq, bool sync)
|
||||||
{
|
{
|
||||||
int ret;
|
ssize_t ret;
|
||||||
|
|
||||||
_enter("R=%x %llx-%llx",
|
_enter("R=%x %llx-%llx",
|
||||||
rreq->debug_id, rreq->start, rreq->start + rreq->len - 1);
|
rreq->debug_id, rreq->start, rreq->start + rreq->len - 1);
|
||||||
|
@ -155,7 +155,7 @@ static int netfs_unbuffered_read(struct netfs_io_request *rreq, bool sync)
|
||||||
else
|
else
|
||||||
ret = -EIOCBQUEUED;
|
ret = -EIOCBQUEUED;
|
||||||
out:
|
out:
|
||||||
_leave(" = %d", ret);
|
_leave(" = %zd", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user