Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp293717rwd; Tue, 30 May 2023 20:50:05 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ57Ok1L77oiBqe1w/6lxbXwf8gvEUevkUfed6z3KVxhck+CJtqsRinCF59IlVUwDr41oKH2 X-Received: by 2002:a17:902:da83:b0:1ad:d95d:ca9c with SMTP id j3-20020a170902da8300b001add95dca9cmr5032142plx.15.1685505005486; Tue, 30 May 2023 20:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685505005; cv=none; d=google.com; s=arc-20160816; b=S7gbZqJJYmO4pbQZmTmZHPHUebru+HF44T/QthIPyu4vB8Ma0PBaZQXBUq/scDzEQA omJ28aN0dhWRyjKoc5on4sZhAJZKNcqmQ3fcoblVglWB2DKNQVydg2MHp+5g/jgEYOVt BSss1fbVrgHe9S4SB0BPMqltz5RZX2xR7ZdBNcKwKgdkqXHoehkrT8HTIjk6Etk+NA8u k/OwaL4ceMigSf+xPz6QLOizPee582dVy9jOzlFo+oHL2N2sjEMmHRgAvHopJ+5xLIy3 he+hjFkp53qAAtMVzGKN3J+OesZmeCK2JXFvrSRCF4X7R6mNOwsrux6S0Em2XcvHrPF3 Kb2Q== 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=hMv6MGGaV1Zb0kngbW3RrtKXVXsycn3/sxlrU6/hyfE=; b=nDMB/N+Bd87ellSHao5F7xuL0NNi/mQ/NTfEs8WPtUKZ29+/xDX21lL9KMBeEkKns9 dVnTQPSVWhk0iI0DLg1QQ3avzYygO+YZEjlKhBU6psaPZ0c7sES7ZICUDxQGCUBhDfBs Z8xCkFmjAclnjTbLsrHM+AlcnY6IZPGeF69bkHkStP7xQz/2QWSu5iTPeB5zVXu8QsIz V33L+RzLAbqzN+AXeqLW04sKKbetq0Hz6CmnKVtHyHpp+C23+vPkANo8nTBscB3rgx9X 556Ay68WMLzg+Gk6qqKkXGhIdTd0JnNtRWk3lLxZN2L9fx+YvMT0tJuN9vozXWKJyr9/ KzVQ== 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 iz9-20020a170902ef8900b001aaef930752si93503plb.647.2023.05.30.20.49.53; Tue, 30 May 2023 20:50:05 -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 S234049AbjEaDNh (ORCPT + 99 others); Tue, 30 May 2023 23:13:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234038AbjEaDNf (ORCPT ); Tue, 30 May 2023 23:13:35 -0400 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 313C3EC for ; Tue, 30 May 2023 20:13:34 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R481e4;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=5;SR=0;TI=SMTPD_---0Vjvoozt_1685502810; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0Vjvoozt_1685502810) by smtp.aliyun-inc.com; Wed, 31 May 2023 11:13:31 +0800 From: Jingbo Xu To: xiang@kernel.org, chao@kernel.org, huyue2@coolpad.com, linux-erofs@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH v4 0/5] erofs: cleanup of xattr handling Date: Wed, 31 May 2023 11:13:25 +0800 Message-Id: <20230531031330.3504-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 v3: - patch 1: make a unified erofs_xattr_iter_fixup() API with newly introduced "bool nospan" argument; call erofs_init_metabuf() and erofs_bread() separately instead of erofs_read_metabuf() - patch 2: avoid duplicated strlen() calculation in erofs_getxattr(); no need zeroing other fields when initializing 'struct erofs_xattr_iter' - patch 4: don't explode 'struct erofs_xattr_iter' with inode/getxattr fields; instead pass inode/getxattr parameters through function parameters of erofs_iter_[inline|shared]_xattr() - patch 5: don't explode 'struct erofs_xattr_iter' with remaining field; instead calculate and check the remaining inside erofs_iter_inline_xattr() changes since v2: - rebase to v6.4-rc2 - passes xattr tests (erofs/019,020,021) of erofs-utils [1] [1] https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/log/?h=experimental-tests v3: https://lore.kernel.org/lkml/20230518024551.123990-1-jefflexu@linux.alibaba.com/ v2: https://lore.kernel.org/all/20230330082910.125374-1-jefflexu@linux.alibaba.com/ v1: https://lore.kernel.org/all/20230323000949.57608-1-jefflexu@linux.alibaba.com/ Jingbo Xu (5): erofs: enhance erofs_xattr_iter_fixup() helper erofs: unify xattr_iter structures erofs: make the size of read data stored in buffer_ofs erofs: unify inline/share xattr iterators for listxattr/getxattr erofs: use separate xattr parsers for listxattr/getxattr fs/erofs/xattr.c | 683 ++++++++++++++++++----------------------------- 1 file changed, 265 insertions(+), 418 deletions(-) -- 2.19.1.6.gb485710b