All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] erofs-utils: introduce xattr name bloom filter
@ 2023-07-05  7:10 Jingbo Xu
  2023-07-05  7:10 ` [PATCH v2 1/3] erofs-utils: add xxh32 library Jingbo Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Jingbo Xu @ 2023-07-05  7:10 UTC (permalink / raw)
  To: hsiangkao, chao, huyue2, linux-erofs; +Cc: alexl

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/20230621083939.128961-1-jefflexu@linux.alibaba.com/


The xattr bloom filter feature is used to boost the negative xattr
lookup.

Refer to the kernel patch set [*] for more details.

[*] https://lore.kernel.org/all/20230705070427.92579-1-jefflexu@linux.alibaba.com/


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   | 35 +++++++++++++++++
 include/erofs_fs.h       | 10 ++++-
 lib/Makefile.am          |  3 +-
 lib/xattr.c              | 74 ++++++++++++++++++++++++++--------
 lib/xxhash.c             | 85 ++++++++++++++++++++++++++++++++++++++++
 mkfs/main.c              |  6 +++
 8 files changed, 197 insertions(+), 18 deletions(-)
 create mode 100644 include/erofs/xxhash.h
 create mode 100644 lib/xxhash.c

-- 
2.19.1.6.gb485710b


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-12 11:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-05  7:10 [PATCH v2 0/3] erofs-utils: introduce xattr name bloom filter Jingbo Xu
2023-07-05  7:10 ` [PATCH v2 1/3] erofs-utils: add xxh32 library Jingbo Xu
2023-07-05  7:29   ` Gao Xiang
2023-07-12 11:58     ` Jingbo Xu
2023-07-05  7:10 ` [PATCH v2 2/3] erofs-utils: update on-disk format for xattr name filter Jingbo Xu
2023-07-05  7:10 ` [PATCH v2 3/3] erofs-utils: mkfs: enable " Jingbo Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.