Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

os/bluestore: traverse buffer_map in reverse order when spliting BufferSpace #11468

Merged
merged 5 commits into from
Oct 13, 2016

Conversation

xiexingguo
Copy link
Member

No description provided.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Which is depreciated by ceph@7260166#diff-6519c151b74b5a9355a697be278a4382

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Which is more efficient.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@liewegas
Copy link
Member

Why is going in reverse more efficient?

p->second->end() <= pos) {
dout(30) << __func__ << " skip " << *p->second << dendl;
++p;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liewegas
So we can avoid the skip process above, especially if we have to skip all.

@liewegas
Copy link
Member

liewegas commented Oct 13, 2016 via email

@liewegas liewegas merged commit 3ad8ccc into ceph:master Oct 13, 2016
@xiexingguo xiexingguo deleted the xxg-wip-bluestore-1013 branch October 13, 2016 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants