[PATCH v7 0/3] erofs-utils: optimize buffer allocation logic

Gao Xiang hsiangkao at aol.com
Sat Jan 23 04:11:50 AEDT 2021


Hi all,

This introduces bucket lists for mapped buffer block to boost up
buffer allocation and buffer mapping. Thanks to Weiwen for
contribution!

changes since v6:
 - introduce erofs_bfind_for_attach to clean up erofs_balloc();
 - use a new formula mentioned by Jianan to calculate used_before;
 - only DBG_BUGON on debug version for __erofs_battach < 0.

Thanks,
Gao Xiang  

Gao Xiang (1):
  erofs-utils: introduce erofs_bfind_for_attach()

Hu Weiwen (2):
  erofs-utils: get rid of `end' argument from erofs_mapbh()
  erofs-utils: optimize buffer allocation logic

 include/erofs/cache.h |   3 +-
 lib/cache.c           | 186 ++++++++++++++++++++++++++++++++----------
 lib/compress.c        |   2 +-
 lib/inode.c           |  10 +--
 lib/xattr.c           |   2 +-
 mkfs/main.c           |   2 +-
 6 files changed, 151 insertions(+), 54 deletions(-)

-- 
2.24.0



More information about the Linux-erofs mailing list