]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common/buffer: For bufferlist add func is_aligned_size_and_memory.
authorJianpeng Ma <jianpeng.ma@intel.com>
Wed, 27 Apr 2016 23:31:14 +0000 (07:31 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Sat, 7 May 2016 23:17:26 +0000 (07:17 +0800)
commit7ca73f4e6ee458ce82bdbb86467388dc207b8e5c
tree31aa3f3941d5ee318cc4efd0bffae255bd10d30a
parentdc0c99eb4fdc095c1a96602dd2f9f0d94041517b
common/buffer: For bufferlist add func is_aligned_size_and_memory.

For directIO requirement, we need check bufferpt whether size aligned
and the address aligned. To do this, we should call is_aligned &&
is_n_align_sized. Every func also list all ptr of bufferlist.
To reduce one list, we add is_aligned_size_and_memroy(align_size,
align_memory) which only need list once.

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