env/memory: add inline tag to spdk_mem_map_translate
This helps ensure it gets inlined in the spdk_vtophys code path, now that spdk_vtophys is defined in the same compilation module. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I0d0d9bba4295f0d9a7c0657834aa5d39f3b682d8 Reviewed-on: https://review.gerrithub.io/c/445354 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
f74d069ec0
commit
608a2d5875
@ -633,7 +633,7 @@ spdk_mem_map_clear_translation(struct spdk_mem_map *map, uint64_t vaddr, uint64_
|
||||
return 0;
|
||||
}
|
||||
|
||||
uint64_t
|
||||
inline uint64_t
|
||||
spdk_mem_map_translate(const struct spdk_mem_map *map, uint64_t vaddr, uint64_t *size)
|
||||
{
|
||||
const struct map_1gb *map_1gb;
|
||||
|
Loading…
Reference in New Issue
Block a user