Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
os/bluestore: add a boundary check of cache read
By trapping the "==" case and break, we can finish the cache read just in time. As a result, we can avoid two extra operations(adjusting "offset" and "length") and the final loop check. Since this is one of key methods of cache, it deserves this fix. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
- Loading branch information