ext2: add memory data structure.

N/A

Signed-off-by: liminghao <liminghao@xiaomi.com>