Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27412319rwd; Tue, 4 Jul 2023 02:34:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlGPIIALkjG0OvZ1xZNFMg/WmM7wKSE7Jo7sIiroZ2xybfQHDxsEfXUYQpxKq1xk9EDcBuTw X-Received: by 2002:a0d:df86:0:b0:579:ec06:eb3d with SMTP id i128-20020a0ddf86000000b00579ec06eb3dmr8165534ywe.21.1688463269906; Tue, 04 Jul 2023 02:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688463269; cv=none; d=google.com; s=arc-20160816; b=wvgshW0ZPIEfHGO4L9dFffTZMpNUiR8y8m/cNTce+qJpnzXmNAiweyYW9l+rFCLG32 f6lRLPTMT+LdxHwXCN1FkHkHTN3lnCnIl/b3gL38uscmEAdYbJiycfvAJmQuL3dv9Th5 Vi7oRTVxtAXxXDFHe4SiRybqnSR6zVY/hSdF5tPsLYJd8i3EHnG5Hr52KhL/PV+eiNfk PM9OPvm7MmQFQvoBU0eqwpQtP9LDPMjUSIH4hEhpaaZZ+oGkpm6AAZOPib9b8ldCRyzu 3T912fO3nxFJUBV4uMoRrsNjVjyVcB3T4ri0VAJhc9PDodSeId7DnK3Df/BnLwA3LwFQ ThwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=d2iXS/s6dvD2deS8umrPzQgRYoyI8AS7rbPSSfqAa4M=; fh=/JlJbTMMuQc0PtbEQEaPCidz8mBcLn3I79vgFSXRjWM=; b=y+5t8t/0FNX6l2oVAj5jWVe+eD8hO+cJ+AJai6pGdcerGeqCEu3o7YsIRy5yiko3jK DPErNEe5Q/YcSRQvXgPe6yKDJAo49Q0E60/mGW0lRl7rAOIJr6/KPdhh5cvWhlBtaKlL becsUyajfBVDzvyv4Vk7ugGQCuU6Jwwg8OmK3fGWtYVdoc1sc6P9d4kTFHIvYNBaviSg IJaZ/QTsLQn3ymKp5btLIivLzr+DoMCplHjOj030hrgBIUYeuhGrrVN6HJjuWiAnldym 1P5hpw02Ge1YnJQ1d70y/2uyAQLOHE/exRZX5Gwtg55qmvW0sjLHG2bWmY44wfK964lu Zy2g== 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 x124-20020a636382000000b0054fd8114a7fsi20805780pgb.22.2023.07.04.02.34.16; Tue, 04 Jul 2023 02:34:29 -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 S231707AbjGDJPZ (ORCPT + 99 others); Tue, 4 Jul 2023 05:15:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjGDJPX (ORCPT ); Tue, 4 Jul 2023 05:15:23 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A4E7B6 for ; Tue, 4 Jul 2023 02:15:21 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=hsiangkao@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VmcHuwv_1688462115; Received: from 30.97.48.245(mailfrom:hsiangkao@linux.alibaba.com fp:SMTPD_---0VmcHuwv_1688462115) by smtp.aliyun-inc.com; Tue, 04 Jul 2023 17:15:16 +0800 Message-ID: Date: Tue, 4 Jul 2023 17:15:14 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [RFC 0/2] erofs: introduce bloom filter for xattr To: Alexander Larsson , Jingbo Xu Cc: chao@kernel.org, huyue2@coolpad.com, linux-erofs@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <20230621083209.116024-1-jefflexu@linux.alibaba.com> <74a8a369-c3b0-b338-fa8f-fdd7c252efaf@linux.alibaba.com> From: Gao Xiang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,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 On 2023/7/4 16:05, Alexander Larsson wrote: > On Tue, Jul 4, 2023 at 7:56 AM Jingbo Xu wrote: >> >> ... >> ``` >> seed: 25bbe08f >> bit 31: trusted.overlay.metacopy, user.overlay.metacopy, >> >> seed: cc922efd >> bit 3: trusted.overlay.opaque, user.overlay.opaque, >> >> seed: cd478c17 >> bit 6: trusted.overlay.metacopy, user.overlay.metacopy, >> ``` >> >> >> Any other idea? > > Any of these three is good to me. I don't have any ideas directly > related to this. However, semi-related, it would be really cool if > fuse supported the same approach for xattr lookup. I.e. if lookup > could add a bloom filter value as part of the inode data, then we > could avoid a kernel<->fusefs-d transition for negative xattrs > lookups. I think we could just use a hardcoded magic number (e.g. 25bbe08f) as a start first, since it seems already fulfill our requirement and it's a compatible feature (and the implementation is also not complex.) So I'm not quite worried about this. Thanks, Gao Xiang >