Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3050254rwb; Fri, 20 Jan 2023 10:30:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXvyB/DR76mUzXAig4izeixaY5U3TOd0d4icmTqMw3pf9yQr/hvPaUUS8aNIOmglkDsYIi9T X-Received: by 2002:aa7:9892:0:b0:583:4126:a09 with SMTP id r18-20020aa79892000000b0058341260a09mr15554799pfl.21.1674239414735; Fri, 20 Jan 2023 10:30:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674239414; cv=none; d=google.com; s=arc-20160816; b=xmtWxwFJUGyhdZ2xemQWDWJXRoG1rNHAM2ssLA9Z46KZT/h8T5ZgnN73tEZSTSz+WJ apNW7SUhtOOP9FcqlO6VbRXzwJ8pO2Ivf3vTFttIgCHT55XKK54C2A4wWDJ4I70KlPDN +aKif9hI5rV+Z8kgbULV6eZ0e6p67OhtHudNMwxQrAfBDhkLX/lbOEoVY+EZtB5jEAXC jlhKD/K85tOO451Frp/3IIWUTAIwiZ21YU2fGAF9A3HUW6qzrNgDb+FIyv0qixlWjwls WeypWzJsS8UZFbrACciYgoqNEce1p4I75YkEjKh3XuphnrCoxLiXRt+Y49KUB7CnfSyW G78w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ta463GNWpnL1eda0EOJixqIlh22m7Il+MjZ51ImK1zc=; b=gSquEXeNzBP2gGfur1H/YAdlYpCSpYe0CelV+eeL1r6HMASg/ItKICskm1eeJ6pvzl I/1NmhfNnRXJOmh3htEsV93ziL+/rbmxrrg1CKxGxqM0Cs/jlNVfcajwPUa973JC4uzV mnioF6ARMxtVUyK+NMRP5apU8XUNsEt9F3DK79ul2FpnM9MXBqoqbhbcjv6adl3urrn8 45ZmtwV2GlTArM++3+/JpJD1aCMVxJi8Hg0lewdculcPVDqkntE0SWzJI0yixlL1ZjmJ /dR7rCxBJ0hxc4p3N7bBEYBWqeSqHVqY+gN6vBH7Fs2XsKaIthMiUQvKCBWEYC++ezib XztQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h1358uUW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z4-20020a056a00240400b00585070b8dbcsi14317161pfh.315.2023.01.20.10.30.05; Fri, 20 Jan 2023 10:30:14 -0800 (PST) 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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=h1358uUW; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229473AbjATR6k (ORCPT + 50 others); Fri, 20 Jan 2023 12:58:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230189AbjATR60 (ORCPT ); Fri, 20 Jan 2023 12:58:26 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 853C44ED0C for ; Fri, 20 Jan 2023 09:56:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674237378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ta463GNWpnL1eda0EOJixqIlh22m7Il+MjZ51ImK1zc=; b=h1358uUWgs/AJBnstXP9lK6fMC30LAU0iyhKlQbqPByH5u2vMiT7bT4l+OhfaSOELdJ9RV I7dVFAnLMhaEC0cNacj3uM7Ino6y7ox80Q/bgaeVrc7WjgUdJOa5SjlNxgGsu+jqrOcJsw k5N9dDwcD+RBiCxYhp8/quQSBTIyB54= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-635-QpHAzj-iPBujrtcfNdvXMQ-1; Fri, 20 Jan 2023 12:56:13 -0500 X-MC-Unique: QpHAzj-iPBujrtcfNdvXMQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 13593380450D; Fri, 20 Jan 2023 17:56:13 +0000 (UTC) Received: from warthog.procyon.org.uk.com (unknown [10.33.36.23]) by smtp.corp.redhat.com (Postfix) with ESMTP id A47B640C6EC4; Fri, 20 Jan 2023 17:56:11 +0000 (UTC) From: David Howells To: Al Viro , Christoph Hellwig Cc: David Howells , Matthew Wilcox , Jens Axboe , Jan Kara , Jeff Layton , Logan Gunthorpe , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Christoph Hellwig Subject: [PATCH v7 5/8] block: Add BIO_PAGE_PINNED Date: Fri, 20 Jan 2023 17:55:53 +0000 Message-Id: <20230120175556.3556978-6-dhowells@redhat.com> In-Reply-To: <20230120175556.3556978-1-dhowells@redhat.com> References: <20230120175556.3556978-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 BIO_PAGE_PINNED to indicate that the pages in a bio were pinned (FOLL_PIN) and that the pin will need removing. Signed-off-by: David Howells cc: Al Viro cc: Jens Axboe cc: Jan Kara cc: Christoph Hellwig cc: Matthew Wilcox cc: Logan Gunthorpe cc: linux-block@vger.kernel.org --- include/linux/blk_types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h index 86711fb0534a..42b40156c517 100644 --- a/include/linux/blk_types.h +++ b/include/linux/blk_types.h @@ -319,6 +319,7 @@ struct bio { */ enum { BIO_PAGE_REFFED, /* Pages need refs putting (equivalent to FOLL_GET) */ + BIO_PAGE_PINNED, /* Pages need unpinning (equivalent to FOLL_PIN) */ BIO_CLONED, /* doesn't own data */ BIO_BOUNCED, /* bio is a bounce bio */ BIO_QUIET, /* Make BIO Quiet */