Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2303479rwi; Fri, 21 Oct 2022 02:10:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7AJ0mCilXNzb3RBra2/VlroPcZZsn0QhOKDacNVy5+EPnNSfAltJEIh0NwWHG0PPrOVnzT X-Received: by 2002:a63:5559:0:b0:464:a987:8365 with SMTP id f25-20020a635559000000b00464a9878365mr15655135pgm.479.1666343457009; Fri, 21 Oct 2022 02:10:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666343456; cv=none; d=google.com; s=arc-20160816; b=yEASZq0o4WmWLWCuq14cFt+ul6WFPx4IrEeR+Lvt98T93QcjiD33H9URxk1kHsMdKw DEKb/q5Zx/2y6qazORZvZ58o32TVsqcRYxiDSs9MErJCCzb3o3G6OXeXTWM2RqY6H07q LOuEHHVSvFsMuOgUj4thsBMLOTImCXMDyZR+lSwtEpnQwuhiqPaCRr05rNbekaaLdfDU 7G4S6u+CRvHT4RuTZ9i1FTQ6BmHdkU35FH/v1qwU6Z4UMQfFBMt2bEexsNGk+bcatelU +L+3ml4t6Y/z3LjhIpy0s8C1vwT/ORbMFz4RiiHLltf1JF0s17NNRVW+VppuGBkHndqo f8HQ== 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=qFr1NjkEkBYMp8ArUHVcjqUzb/FBOsAQ7/abbVIHRHk=; b=I+hlcxQCoOTZYd5iyAHjsrm6OiZuiycX59YRM85LbJb1to6+agXestCh6CdevSCRBP +s3BlWtQHw/x/cduPuqHUgzIiFZyVDa4IE6xEDQMbIytmliV7JTnToh+lWgUuizIiaoL kFJ7o7ikZCwqAXmjEi9E1Ziy3ZJ8RdVoJ8d1hwiAivVTgUoP3tEjh98gvOLee1WHisAN EJoV8yPgbcoyyTB6oQAzO2/+0dMXlC3Y0pWCha70fId9gcMrsUioat9Sg3azobgeB9WI W27vXHtIMNkZP7dkHbHKLqwkooBzMD/15annTBJVcgh8zq9KppdDYBNUfOnlt7xagdPN Na8w== 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 q17-20020a170902f35100b00176bcd1ccf3si20266658ple.591.2022.10.21.02.10.45; Fri, 21 Oct 2022 02:10:56 -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 S229497AbiJUIuO (ORCPT + 99 others); Fri, 21 Oct 2022 04:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbiJUIuE (ORCPT ); Fri, 21 Oct 2022 04:50:04 -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 4C489357CD; Fri, 21 Oct 2022 01:49:49 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=jefflexu@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VSimdbh_1666342152; Received: from localhost(mailfrom:jefflexu@linux.alibaba.com fp:SMTPD_---0VSimdbh_1666342152) by smtp.aliyun-inc.com; Fri, 21 Oct 2022 16:49:13 +0800 From: Jingbo Xu To: dhowells@redhat.com, xiang@kernel.org, chao@kernel.org, linux-erofs@lists.ozlabs.org Cc: jlayton@kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 0/2] netfs,erofs: reuse netfs_put_subrequest() and Date: Fri, 21 Oct 2022 16:49:10 +0800 Message-Id: <20221021084912.61468-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, 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 The data routine of erofs in fscache mode also relies on netfs_io_request and netfs_io_subrequest. erofs itself maintains a copy of some helpers on netfs_io_request and netfs_io_subrequest. To clean up the code, export netfs_put_subrequest() and netfs_rreq_completed(). Jingbo Xu (2): netfs: export helpers for request and subrequest erofs: use netfs helpers manipulating request and subrequest fs/erofs/fscache.c | 47 +++++++++---------------------------------- fs/netfs/io.c | 3 ++- fs/netfs/objects.c | 1 + include/linux/netfs.h | 2 ++ 4 files changed, 15 insertions(+), 38 deletions(-) -- 2.19.1.6.gb485710b