[PATCH v2 0/2] erofs-utils: remove global sbi in library
Jingbo Xu
jefflexu at linux.alibaba.com
Wed Jul 19 17:33:17 AEST 2023
changes since v1:
- patch 1: rename iloc() to erofs_iloc() (Gao Xiang)
v1: https://lore.kernel.org/all/20230718052101.124039-1-jefflexu@linux.alibaba.com/
Later mkfs is going to be capable of converting multiple erofs images
into one merged erofs image, in which case there are multiple device
context and sbi instances.
In preparation for that, remove global device context and sbi in all
libraries except buffer block library, as there's still only one output
erofs image.
The device context is inlined into sbi. Each erofs_inode keeps a
reference to corresponding sbi through vi->sbi. Global sbi is remained
but only used by utils directly, e.g. mkfs/dump/fsck.
Jingbo Xu (2):
erofs-utils: simplify iloc()
erofs-utils: remove global sbi in library
dump/main.c | 30 +++---
fsck/main.c | 41 ++++----
fuse/main.c | 24 ++---
include/erofs/blobchunk.h | 4 +-
include/erofs/cache.h | 6 +-
include/erofs/compress.h | 8 +-
include/erofs/compress_hints.h | 2 +-
include/erofs/decompress.h | 1 +
include/erofs/dir.h | 3 +-
include/erofs/internal.h | 59 ++++++------
include/erofs/io.h | 38 ++++----
include/erofs/tar.h | 4 +-
include/erofs/xattr.h | 16 ++--
lib/blobchunk.c | 45 ++++-----
lib/cache.c | 42 ++++-----
lib/compress.c | 165 ++++++++++++++++++---------------
lib/compress_hints.c | 10 +-
lib/compressor.c | 15 +--
lib/compressor.h | 4 +-
lib/compressor_lz4.c | 2 +-
lib/compressor_lz4hc.c | 2 +-
lib/data.c | 69 +++++++-------
lib/decompress.c | 29 +++---
lib/dir.c | 21 +++--
lib/fragments.c | 2 +-
lib/inode.c | 118 ++++++++++++-----------
lib/io.c | 119 +++++++++++-------------
lib/namei.c | 36 ++++---
lib/super.c | 51 +++++-----
lib/tar.c | 36 +++----
lib/xattr.c | 75 ++++++++-------
lib/zmap.c | 43 +++++----
mkfs/main.c | 62 ++++++-------
33 files changed, 627 insertions(+), 555 deletions(-)
--
2.19.1.6.gb485710b
More information about the Linux-erofs
mailing list