diff options
| author | Keith Busch <[email protected]> | 2022-07-12 15:32:55 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2022-08-03 03:08:54 +0000 |
| commit | 34cdb8c825f28a5c91c5336a80967533da57da74 (patch) | |
| tree | c3cf2f81d5b7294b1cc104394e41d338f1771f96 /fs/ext4/fast_commit.c | |
| parent | block: ensure iov_iter advances for added pages (diff) | |
| download | kernel-34cdb8c825f28a5c91c5336a80967533da57da74.tar.gz kernel-34cdb8c825f28a5c91c5336a80967533da57da74.zip | |
block: ensure bio_iov_add_page can't fail
Adding the page could fail on the bio_full() condition, which checks for
either exceeding the bio's max segments or total size exceeding
UINT_MAX. We already ensure the max segments can't be exceeded, so just
ensure the total size won't reach the limit. This simplifies error
handling and removes unnecessary repeated bio_full() checks.
Signed-off-by: Keith Busch <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions
