erofs-utils: introduce erofs_bfind_for_attach()

Seperate erofs_balloc() to make the logic more clearer.

Link: https://lore.kernel.org/r/20210122171153.27404-3-hsiangkao@aol.com
Cc: Hu Weiwen <sehuww@mail.scut.edu.cn>
Reviewed-by: Li Guifu <bluce.lee@aliyun.com>
Signed-off-by: Gao Xiang <hsiangkao@aol.com>
1 file changed