]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
netfs: fix sense of DIO test on short read
authorJeff Layton <jlayton@kernel.org>
Tue, 17 May 2022 22:28:09 +0000 (18:28 -0400)
committerJeff Layton <jlayton@kernel.org>
Wed, 18 May 2022 14:58:53 +0000 (10:58 -0400)
commit4f8b17343bca63dc657b2320d006b612a252b11e
treecebf64922f80ddbe645ebc73090d53c97556520b
parentf804472ec5e1749b80a01dc9a6a5811236ce9506
netfs: fix sense of DIO test on short read

The sense of this test is reversed. There's nothing that prevents
userland from requesting a DIO read that is longer than the available
data. Conversely, we don't expect a buffered read to be short unless it
hits the EOF.

Suggested-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@kernel.org>
fs/netfs/io.c