diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-03 22:44:47 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-28 16:18:05 -0400 |
commit | 2bebee3d6aafda460d3a08996c1b4e5fb1255cbc (patch) | |
tree | a3b21d9bf3e88d2940a9ea9f0abfea20f608e62a /include/linux/string_helpers.h | |
parent | b83d261f589eca14add6b44730a11e137beceb83 (diff) |
block: Allow bio_iov_iter_get_pages() with bio->bi_bdev unset
bio_iov_iter_get_pages() trims the IO based on the block size of the
block device the IO will be issued to.
However, bcachefs is a multi device filesystem; when we're creating the
bio we don't yet know which block device the bio will be submitted to -
we have to handle the alignment checks elsewhere.
Thus this is needed to avoid a null ptr deref.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org
Diffstat (limited to 'include/linux/string_helpers.h')
0 files changed, 0 insertions, 0 deletions