erofs-utils: introduce xattr name bloom filter
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v7 Latest3 patches 1 replyIn review
- v6 posting 2/23 patches 6 repliesSuperseded
- v6 posting 1/22 patches 3 repliesSuperseded
Earlier versions · 9
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 posting 2/2 | 3 patches | 0 replies | Superseded | |
| v5 posting 1/2 | 2 patches | 3 replies | Superseded | |
| v4 posting 2/2 | 2 patches | 1 reply | Superseded | |
| v4 posting 1/2 | 3 patches | 0 replies | Superseded | |
| v3 posting 2/2 | 3 patches | 1 reply | Superseded | |
| v3 posting 1/2 | 2 patches | 2 replies | Superseded | |
| v2 posting 2/2 | 3 patches | 2 replies | Superseded | |
| v2 posting 1/2 | 2 patches | 7 replies | Superseded | |
| v1 RFC | 3 patches | 0 replies | Superseded |
Changes in v7 from the cover letter
- patch 1: polish license disclaimer; tweak included headers (Gao Xiang)
- patch 2: drop unused EROFS_XATTR_NAME_LEN_MAX; polish commit message (Gao Xiang)
- patch 3: add warning when failed to calculate hashbit; tweak code of assigning header->h_name_filter (Gao Xiang)
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | erofs-utils: add xxh32 libraryinclude/ lib/ lib/ | +155 | 0 replies | |
| 2/3 | erofs-utils: update on-disk format for xattr name filterinclude/ | +8 | 0 replies | |
| 3/3 | erofs-utils: mkfs: enable xattr name filterinclude/ include/ lib/ +1 more | +74 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.
Cover letter [PATCH v7 0/3] erofs-utils: introduce xattr name bloom filter
changes since v6:
- patch 1: polish license disclaimer; tweak included headers (Gao Xiang)
- patch 2: drop unused EROFS_XATTR_NAME_LEN_MAX; polish commit message (Gao Xiang)
- patch 3: add warning when failed to calculate hashbit; tweak code of assigning header->h_name_filter (Gao Xiang)
changes since v5:
- patch 1: update distribution license
- patch 3: rebase to the latest -dev branch
changes since v4:
- patch 3: the feature is refactored and implemented in a more cohesive way, that is, the hashbit is calculated in erofs_export_xattr_ibody(). For xattr_item in the long xattr name prefix style, reconstruct the full xattr name first, then derive the corresponding predefined short name prefix and finally calculate the hashbit.
changes since v3:
- patch 3: "-Exattr-name-filter" option rather than "--xattr-filter" option is newly introduced to enable this feature (Gao Xiang)
changes since v2:
- patch 2: introduce xattr_filter_reserved in on-disk superblock; remove EROFS_XATTR_FILTER_MASK
- patch 3: xattr_filter_reserved is always initialized to 0 by default
changes since RFC:
- the number of hash functions is 1, and now it's implemented as:
xxh32(name, strlen(name), EROFS_XATTR_FILTER_SEED + index),
where the constant magic number EROFS_XATTR_FILTER_SEED [*] is used to give a better spread for the mapping. (Alexander Larsson)
- fix the value of EROFS_FEATURE_COMPAT_XATTR_FILTER; rename EROFS_XATTR_BLOOM_* to EROFS_XATTR_FILTER_* (Gao Xiang)
RFC: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/
v4: https://lore.kernel.org/all/[email protected]/
v5: https://lore.kernel.org/all/[email protected]/
v6: https://lore.kernel.org/all/[email protected]/
The xattr bloom filter feature is used to boost the negative xattr lookup.
Refer to the kernel patch set [*] for more details.
[*] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fd73a4395d47
Jingbo Xu (3):
erofs-utils: add xxh32 library
erofs-utils: update on-disk format for xattr name filter
erofs-utils: mkfs: enable xattr name filter
include/erofs/config.h | 1 + include/erofs/internal.h | 1 + include/erofs/xxhash.h | 27 +++++++++ include/erofs_fs.h | 10 +++- lib/Makefile.am | 3 +- lib/xattr.c | 65 ++++++++++++++++++++ lib/xxhash.c | 126 +++++++++++++++++++++++++++++++++++++++ mkfs/main.c | 7 +++ 8 files changed, 237 insertions(+), 3 deletions(-) create mode 100644 include/erofs/xxhash.h create mode 100644 lib/xxhash.c
Signature · 1 line
2.19.1.6.gb485710b