]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: In rebuild_page_aligned for the last ptr is page aligned, no need call rebuild().
authorMa Jianpeng <jianpeng.ma@intel.com>
Fri, 12 Sep 2014 03:21:58 +0000 (11:21 +0800)
committerMa Jianpeng <jianpeng.ma@intel.com>
Fri, 12 Sep 2014 14:14:49 +0000 (22:14 +0800)
commitc268400bcbf34d86c05e135b23b6f026cfa92bbc
treef6c53840994b880a46e0964822f06d916fde5203
parent69d3594f9e51049391c66d58990305034e3874ae
buffer: In rebuild_page_aligned for the last ptr is page aligned, no need call rebuild().

This only happen for the last ptr. Because rebuild() don't change the len
of ptr, so if last ptr isn't page-size aligned but is page aligned, the
rebuild() don't change anything.

Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>
src/common/buffer.cc