Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10730047rwp; Fri, 21 Jul 2023 04:12:26 -0700 (PDT) X-Google-Smtp-Source: APBJJlGSPQEtkWN78Ur9WE7iWjObGH2Uhg3nKwQpRDNw8vE2v1f0Qka3//tKHp5QEvL7qHM9E9Id X-Received: by 2002:a17:906:8a67:b0:992:7295:61d4 with SMTP id hy7-20020a1709068a6700b00992729561d4mr1437095ejc.3.1689937945994; Fri, 21 Jul 2023 04:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689937945; cv=none; d=google.com; s=arc-20160816; b=oSfsfgWYar1Y8oKOmvNUdvaY10MYujzQe5cYuBmcs0HsNb8tyBN+4iDORNlgCEL4R7 uHbjQe/nG7ZlkBBv2S1OK+dUbSaZPawssDfIgcLHqPDtmJZXR75sre1R4DqO63scBX7j amb1kdCvoJywfpZLrrch52nAuhQJGf6nBAOtWvbvzqK3v+hAJX6ETxKbg9g1bk7+t6lc AI5GGHALoy4wJ/0/K3ztDoXCovymW7TB3UUUKVFYXAQ20itaC3xYXBSdBdoofOD0Ej87 XF7u0IIXtjJL3cLxVEGbF86ZA/43gJsvPpedI5LvEKJ7CXeWyrsxean8h4F6jfOnJi5X Dzrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=XbB/zb8QpNE3pCDFRRp19uqwMHrwghcBEVlkY6oFe6A=; fh=c8pvLHGYFOEymPms4uYOO2xnsIHGQ54Pg45olDkm+5s=; b=0qtU/+mIHFfJ+U2ZmUK8rY0Z/jmx4ewpddzrlhqkdrSF0mfiiiVaMYiLPKWXIytl6D 3nyeIN6Qo1hCS3mhd8I56RMmoMsqN1kkwIJvE8UpSFjcjncJh2JD3o4GKyXmt5bs19XQ oPWKEe3f+P/jrTWAWiPph4uQUaUIlD4CWhy5IlYsBd43GVBN1w7EE1vWOOn5Octvgqu6 RChGCNCBZNnXfZ4QzgM+unoBFT2C/Hw1Q+N0X3LVNqcD0L0hPQB4vRglLszgU5N+7Cbi D64TjS7FdHCGx88jAROH8oiDZqA1qtQnMQbXhWhYOAtrS75WkECVEwXzEweMAvPoTbXo /ASA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x6-20020a170906804600b00997bebfe43fsi1955111ejw.696.2023.07.21.04.12.01; Fri, 21 Jul 2023 04:12:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230237AbjGUKtl (ORCPT + 99 others); Fri, 21 Jul 2023 06:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbjGUKta (ORCPT ); Fri, 21 Jul 2023 06:49:30 -0400 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6920810FE for ; Fri, 21 Jul 2023 03:49:28 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R371e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VnuH80X_1689936563; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VnuH80X_1689936563) by smtp.aliyun-inc.com; Fri, 21 Jul 2023 18:49:24 +0800 From: Jingbo Xu To: hsiangkao@linux.alibaba.com, chao@kernel.org, huyue2@coolpad.com, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, alexl@redhat.com Subject: [PATCH v5 0/2] erofs: introduce xattr name bloom filter Date: Fri, 21 Jul 2023 18:49:21 +0800 Message-Id: <20230721104923.20236-1-jefflexu@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org changes since v4: - patch 2: polish commit message; declare erofs_inode.xattr_name_filter as unsigned int instead of unsigned long; rename `bit` to `hashbit`; use bitwise and instead of test_bit() to test the hashbit (Gao Xiang) changes since v3: - patch 1: add "Reviewed-by" tag (Gao Xiang) - patch 2: make CONFIG_EROFS_FS_XATTR select CONFIG_XXHASH (Gao Xiang) changes since v2: - patch 1: polish the commit message; introduce xattr_filter_reserved in on-disk superblock; remove EROFS_XATTR_FILTER_MASK (Gao Xiang) 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) Refer to patch 1 for more details. - fix the value of EROFS_FEATURE_COMPAT_XATTR_BLOOM; rename EROFS_XATTR_BLOOM_* to EROFS_XATTR_FILTER_* (Gao Xiang) - pass all tests in erofs-utils (MKFS_OPTIONS="--xattr-filter" make check) [*] https://lore.kernel.org/all/74a8a369-c3b0-b338-fa8f-fdd7c252efaf@linux.alibaba.com/ RFC: https://lore.kernel.org/all/20230621083209.116024-1-jefflexu@linux.alibaba.com/ v2: https://lore.kernel.org/all/20230705070427.92579-1-jefflexu@linux.alibaba.com/ v3: https://lore.kernel.org/all/20230712115123.33712-1-jefflexu@linux.alibaba.com/ v4: https://lore.kernel.org/all/20230714031034.53210-1-jefflexu@linux.alibaba.com/ Jingbo Xu (2): erofs: update on-disk format for xattr name filter erofs: boost negative xattr lookup with bloom filter fs/erofs/Kconfig | 1 + fs/erofs/erofs_fs.h | 10 ++++++++-- fs/erofs/internal.h | 3 +++ fs/erofs/super.c | 1 + fs/erofs/xattr.c | 14 ++++++++++++++ 5 files changed, 27 insertions(+), 2 deletions(-) -- 2.19.1.6.gb485710b