Message ID | 20221021084912.61468-1-jefflexu@linux.alibaba.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp574354wrr; Fri, 21 Oct 2022 01:58:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM63KID/qewiM5AOB0tVToBz9HMD9itgqJafsRIiQhreHEw/bcvfHPtVuG8uBPOccgt+vXIy X-Received: by 2002:a17:906:6791:b0:78d:4051:fcf0 with SMTP id q17-20020a170906679100b0078d4051fcf0mr14394037ejp.591.1666342731439; Fri, 21 Oct 2022 01:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666342731; cv=none; d=google.com; s=arc-20160816; b=l+NiNFasuabvZf67zq3EW0DIRKzGCpUKk1Iy/PEYJjtNfOgux2FrZ7V65QKbJaW2nu Kr65LJJ3a54nWDAcgFFSBNjQ4hxL1o6upeoCH+Lp6y5x38XYLoPNn/wWp7MXv8yBQFSz 1evEarKGt2D7RE0UHjcEOUwV8HMbylDBANnqnYDC51C2/XcxOHfNgLjvTLIz2Q1zFpJC 1GVoUysoqmq/qqjJAFUUQKwl8o1GANMVy6jO1H3D1URnmLjA135SuyPhNzTlk8FZj1wY InbJqyC6jnakHBu0156Y0T5ZVDr845foXqrj/N9YEnb37d6e3Dwx20gbnvWAua2hqdEO 1oYA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f3-20020a170906390300b007879bb732c6si16114985eje.712.2022.10.21.01.58.26; Fri, 21 Oct 2022 01:58:51 -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 <rfc822;pwkd43@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <jefflexu@linux.alibaba.com> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747286996166592503?= X-GMAIL-MSGID: =?utf-8?q?1747286996166592503?= |
Series |
netfs,erofs: reuse netfs_put_subrequest() and
|
|
Message
Jingbo Xu
Oct. 21, 2022, 8:49 a.m. UTC
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(-)