Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os/bluestore: simplify BufferSpace writing_map / list
We were tracking buffers by seq. In reality, though, we won't have very many buffers that have in flight IO to the same blob at the same time, so we can get by with just a list here. We can rely on the fact that the list will be sorted (seq's increase, and we put new buffers at the end). This saves us a memory allocation. No change in size of BufferSpace and Blob (std::list -> intrusive::list). Signed-off-by: Sage Weil <sage@redhat.com>
- Loading branch information
Showing
2 changed files
with
25 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters