diff options
author | 2018-03-26 20:29:47 +0200 | |
---|---|---|
committer | 2018-04-03 15:04:29 -0400 | |
commit | 45354f1eb67224669a1de94dbfcb8bb226be1f74 (patch) | |
tree | 9b91b8be6fcf300e5f22ccaec4f506c6e0ee6725 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dm bufio: support non-power-of-two block sizes (diff) | |
download | linux-rng-45354f1eb67224669a1de94dbfcb8bb226be1f74.tar.xz linux-rng-45354f1eb67224669a1de94dbfcb8bb226be1f74.zip |
dm bufio: don't embed a bio in the dm_buffer structure
The bio structure consumes a substantial part of dm_buffer. The bio
structure is only needed when doing I/O on the buffer, thus we don't
have to embed it in the buffer.
Allocate the bio structure only when doing I/O.
We don't need to create a bio_set because, in case of allocation
failure, dm-bufio falls back to using dm-io (which keeps its own
bio_set).
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions