diff options
author | Chandan Rajendra <chandan@linux.vnet.ibm.com> | 2016-01-21 15:56:00 +0530 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-01 19:24:29 +0100 |
commit | 5f4dc8fc835bbb902f5c2aa3de3978f3f518aa73 (patch) | |
tree | 8ea4c13c613e02a98a17271197790266ea6286bc /Documentation/accounting | |
parent | 298cfd368364912076fd84fbceb0df864da42a67 (diff) | |
download | op-kernel-dev-5f4dc8fc835bbb902f5c2aa3de3978f3f518aa73.zip op-kernel-dev-5f4dc8fc835bbb902f5c2aa3de3978f3f518aa73.tar.gz |
Btrfs: btrfs_submit_direct_hook: Handle map_length < bio vector length
In subpagesize-blocksize scenario, map_length can be less than the length of a
bio vector. Such a condition may cause btrfs_submit_direct_hook() to submit a
zero length bio. Fix this by comparing map_length against block size rather
than with bv_len.
Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'Documentation/accounting')
0 files changed, 0 insertions, 0 deletions