commit | 8a0aee173b951bdb282566b7a8cf11431b76f6de | [log] [tgz] |
---|---|---|
author | Han Pingtian <hanpt@linux.vnet.ibm.com> | Tue Jan 27 09:31:04 2015 +0800 |
committer | Cyril Hrubis <chrubis@suse.cz> | Wed Jan 28 13:08:13 2015 +0100 |
tree | 748381d29c9f77d7fedb05eb73757a383dfe239c | |
parent | 7811536846bb2a8105689e4e1ee9ebccf0e47b58 [diff] |
increasing buffer size for correct alignment For align buffer address to the number specified by -a option in aio-stress, it needs to add page_size_mask extra length to total_ram before call allocation functions. Or it wouldn't be correct in this line after the allocation: p = (char *)((intptr_t) (p + page_size_mask) & ~page_size_mask); Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>