ext4 mballoc源代码分析
看mballoc一开始是为了解决一个bug,但是代码没看完,bug已经解决了,仅仅是从C代码规范的处理的,和ext4自身逻辑没有什么关系,具体内容参看“ubsan: "shift exponent -1 is negative" in fs/ext4/mballoc.c:2612:15”,Bugzilla链接。
ext4 mballoc特性是用进行一次性的多个块申请分配,官方定义:
What is multiblock ...
a Linux kernel virtualization developer, the contributor to KVM/Xen community, expert in VT-x, VT-d and X86 architecture, familiar with kernel development in KVM, XEN, Filesystem, IO storage, memory, schedule, etc.