Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1937051rwp; Thu, 13 Jul 2023 20:29:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHb4Bo7WvE9Bjuf3mVkFbY2fXEO9hQpBuxQwkjsDCAJq1qR653XtSn4ZsPIoLNYXyYGPncU X-Received: by 2002:a05:6402:2747:b0:51e:2c4b:6f1e with SMTP id z7-20020a056402274700b0051e2c4b6f1emr2061356edd.14.1689305365660; Thu, 13 Jul 2023 20:29:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689305365; cv=none; d=google.com; s=arc-20160816; b=0W3MO32xVVmUxtviuA+In86LVO5EPm6PZhnfh8TWrVCWnfK+S2zPAK4V/0aZs/E7JL AFLUYK/F+IR0gDogTGOCGwfZtYO/Qa/TQ8JYyQI8pZzI7XmoGM4Nz2b/C+O+wWpkAS+E CTWbSu91Z/YuGm64WWdzEc4DJSa9uOKbkls5x6HG6gRH0QVFIg2RrQr/L/kJo/qjmiXv hsRPD6BU3AZUoD6VxRXbSI+yF8+cS/81Jt47q70XMZk6R4kEuUq6Bd/g9vA88KGOl9Zr Bl06TBYyqVckxk9ufnB0H0dVeKBHcw/ZWt27Iyc+ka23uO7q4NjCmgnDyPrpVWw/+QlI A2Bg== 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=uZDpNPXXszklhBnr+owq8TTW40rXF/iu3l8TZeVVV6U=; fh=c8pvLHGYFOEymPms4uYOO2xnsIHGQ54Pg45olDkm+5s=; b=JRZuSUQPTKVuSVVsgHM0xw0P5BA2wKB49+4NoaQy0vUId6uAlNDgnMI64eVdC3Tap2 Kab7gMP+ILmn8k5OagEzZFW2j6ciSrzAlL8n0KkHwegLa4tD15V9ddDs62wYVPU/azu0 SWLRfHdX0pzWD9J15m6rGkVye7LRVCJFkq5JkIGil+1PIkYkhmuaMMGEhDhjiWvQz+tW TBd89oFS4Bsm0NW+ATRpSr2uTSyfdSlytrxaBiGed5ExHOPrYX3XO5bpJgfJa7H/D1GM Opts5aGOwhG6FBKo3U37r4sp0w7CbiKC+ijuLY8ZJ3furPlLEsFCtQcUIVc3svja3GJb HFmw== 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 n23-20020a05640206d700b0051a4a3c37e7si8276357edy.492.2023.07.13.20.29.02; Thu, 13 Jul 2023 20:29: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 S234715AbjGNDKs (ORCPT + 99 others); Thu, 13 Jul 2023 23:10:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234694AbjGNDKm (ORCPT ); Thu, 13 Jul 2023 23:10:42 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C483430CA for ; Thu, 13 Jul 2023 20:10:38 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R571e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VnJxOPX_1689304234; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VnJxOPX_1689304234) by smtp.aliyun-inc.com; Fri, 14 Jul 2023 11:10:35 +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 v4 0/2] erofs: introduce xattr name bloom filter Date: Fri, 14 Jul 2023 11:10:32 +0800 Message-Id: <20230714031034.53210-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_BLOCKED,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 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/ 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 | 13 +++++++++++++ 5 files changed, 26 insertions(+), 2 deletions(-) -- 2.19.1.6.gb485710b