diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-10 19:39:05 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-10-10 19:58:16 +0200 |
commit | cd27e455042da85b088bdd3a6e00da1d5b4df9f1 (patch) | |
tree | d1a17b68a4098b632c79103a2d2c2184b11cee6f /mm | |
parent | constify iov_iter_count() and iter_is_iovec() (diff) | |
download | linux-cd27e455042da85b088bdd3a6e00da1d5b4df9f1.tar.xz linux-cd27e455042da85b088bdd3a6e00da1d5b4df9f1.zip |
[btrfs] fix check_direct_IO() for non-iovec iterators
looking for duplicate ->iov_base makes sense only for
iovec-backed iterators; for kvec-backed ones it's pointless,
for bvec-backed ones it's pointless and broken on 32bit (we
walk through an array of struct bio_vec accessing them as if
they were struct iovec; works by accident on 64bit, but on
32bit it'll blow up) and for pipe-backed ones it's pointless
and ends up oopsing.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions