Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp335901rwp; Wed, 12 Jul 2023 14:13:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlE8pCqNjITVM9ZYDD9z4Zu4tW9UGXtY2dOPq53A5Ilw0znPvAWZRG775zEaraRc/NLK95vb X-Received: by 2002:a17:902:d2d1:b0:1b8:c972:606c with SMTP id n17-20020a170902d2d100b001b8c972606cmr24268007plc.57.1689196414414; Wed, 12 Jul 2023 14:13:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689196414; cv=none; d=google.com; s=arc-20160816; b=lK225KRUhg5PQuT2eoioIAHgs7lYzGto0gk8tV/w5W1RJnfTvIUJyHE8FDpA1+Y4Tx 4l8ITrVDjlTC93BfDAmeu4+APIB5Te5fHcwdlPfWwyTvi8PA47FstAAgb5Jh9+dAaBQm mpCUTR4+XWxFRDmc/4DNnH/TPYg5m9HX+d8Cg0H9R1RRdp8VQPRPSQqODeKWSY4GUBND jymYINcYHFdUX58BgCqs4n0Kxjosb32uJKvlreGH7hrGYMocxsZh3tEJszpo+E9lgTEL 4qOInk2CragTEamuglEgKAsKjMKHYxjiYnTYcWvu06eb0JxtIl0ZxGNPx3FhUMQjC4e4 a/wg== 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=1JvFlUnJNg/19MdiHLNUIX73kgMJww+dfgCblmEcu1U=; fh=X1xVsMjCte3zcvuWzalFIVtHJR6TxO9Ve1o2n77k4FI=; b=gjBVcL5VVNAAkPrJAtnPfHw3yryjU0lhHITm/SBqyrmNl7ox42yUpiomBpnW3yABUw UjdfZt+stw+8saDNtAuSB5LxmhzRWOt7y1RoKpL9Z99Ty25xSzooq9USlfrBGa1KUWcT ZnkVD0oYFl8GPNnEHNBuLRyBcnrKCe8Qd6xWbB76ljg6tKDv952AnAdtaNjpFQpE6ywm ykIJ4xSKu1ngUSTU+8xRYWNU9RB6dZksntP7bMKmHopOkUsw5+M0x5eNZmmGngiQiSFq iEMnuKMIpugWTZhOKoDbydvwOp1OQ3g+erZZs1/3kIxk0LUO1d2ZTPG6GesQzep7AAt9 WcEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=ioo7Hlb0; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a170902b68e00b001b9e0d09c40si3805616pls.260.2023.07.12.14.13.18; Wed, 12 Jul 2023 14:13:34 -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; dkim=pass header.i=@linux.dev header.s=key1 header.b=ioo7Hlb0; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231544AbjGLVMI (ORCPT + 99 others); Wed, 12 Jul 2023 17:12:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232373AbjGLVLn (ORCPT ); Wed, 12 Jul 2023 17:11:43 -0400 Received: from out-41.mta1.migadu.com (out-41.mta1.migadu.com [95.215.58.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7DC82116 for ; Wed, 12 Jul 2023 14:11:35 -0700 (PDT) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1689196293; 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=1JvFlUnJNg/19MdiHLNUIX73kgMJww+dfgCblmEcu1U=; b=ioo7Hlb05gzTDWYnW+QeyN9R+3fGtpTq8//vnD2VrzbgJKDTQEkVCE4P4f2TYbuiCQhSbu sec4FOu9SqqU17hb0GbaFF3qcgRtj0mZbf7jTv8vr/R9kAlIggYzlRhurx6BhRUWxiUewA qPzUxqlRuNs66nkA93vgzfPg3zuiRmw= From: Kent Overstreet To: linux-bcachefs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kent Overstreet , linux-block@vger.kernel.org, Jens Axboe , Kent Overstreet Subject: [PATCH 04/20] block: Add some exports for bcachefs Date: Wed, 12 Jul 2023 17:10:59 -0400 Message-Id: <20230712211115.2174650-5-kent.overstreet@linux.dev> In-Reply-To: <20230712211115.2174650-1-kent.overstreet@linux.dev> References: <20230712211115.2174650-1-kent.overstreet@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Kent Overstreet - bio_set_pages_dirty(), bio_check_pages_dirty() - dio path - blk_status_to_str() - error messages - bio_add_folio() - this should definitely be exported for everyone, it's the modern version of bio_add_page() Signed-off-by: Kent Overstreet Cc: linux-block@vger.kernel.org Cc: Jens Axboe Signed-off-by: Kent Overstreet --- block/bio.c | 2 ++ block/blk-core.c | 1 + block/blk.h | 1 - include/linux/blkdev.h | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/block/bio.c b/block/bio.c index 043944fd46..1e75840d17 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1481,6 +1481,7 @@ void bio_set_pages_dirty(struct bio *bio) set_page_dirty_lock(bvec->bv_page); } } +EXPORT_SYMBOL_GPL(bio_set_pages_dirty); /* * bio_check_pages_dirty() will check that all the BIO's pages are still dirty. @@ -1540,6 +1541,7 @@ void bio_check_pages_dirty(struct bio *bio) spin_unlock_irqrestore(&bio_dirty_lock, flags); schedule_work(&bio_dirty_work); } +EXPORT_SYMBOL_GPL(bio_check_pages_dirty); static inline bool bio_remaining_done(struct bio *bio) { diff --git a/block/blk-core.c b/block/blk-core.c index 1da77e7d62..b7b0237c36 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -205,6 +205,7 @@ const char *blk_status_to_str(blk_status_t status) return ""; return blk_errors[idx].name; } +EXPORT_SYMBOL_GPL(blk_status_to_str); /** * blk_sync_queue - cancel any pending callbacks on a queue diff --git a/block/blk.h b/block/blk.h index 45547bcf11..f20f9ca03e 100644 --- a/block/blk.h +++ b/block/blk.h @@ -251,7 +251,6 @@ static inline void bio_integrity_free(struct bio *bio) unsigned long blk_rq_timeout(unsigned long timeout); void blk_add_timer(struct request *req); -const char *blk_status_to_str(blk_status_t status); bool blk_attempt_plug_merge(struct request_queue *q, struct bio *bio, unsigned int nr_segs); diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index c0ffe203a6..7a32dc98e1 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -854,6 +854,7 @@ extern const char *blk_op_str(enum req_op op); int blk_status_to_errno(blk_status_t status); blk_status_t errno_to_blk_status(int errno); +const char *blk_status_to_str(blk_status_t status); /* only poll the hardware once, don't continue until a completion was found */ #define BLK_POLL_ONESHOT (1 << 0) -- 2.40.1