erofs-utils: remove global sbi in library
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 0 repliesNew
- v14 patches 3 repliesSuperseded
Changes in v2 from the cover letter
- patch 1: rename iloc() to erofs_iloc() (Gao Xiang)
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | erofs-utils: simplify iloc()fsck/ include/ lib/ +3 more | +16 | 0 replies | |
| 2/2 | erofs-utils: remove global sbi in librarydump/ fsck/ fuse/ +30 more | +617 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [PATCH v2 0/2] erofs-utils: remove global sbi in library
changes since v1:
- patch 1: rename iloc() to erofs_iloc() (Gao Xiang)
v1: https://lore.kernel.org/all/[email protected]/
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(-)
Signature · 1 line
2.19.1.6.gb485710b