Message ID | 20230315163549.295454-12-dhowells@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 645AEC7618B for <linux-mm@archiver.kernel.org>; Wed, 15 Mar 2023 16:36:39 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 749BE6B0087; Wed, 15 Mar 2023 12:36:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 6F8CF6B0088; Wed, 15 Mar 2023 12:36:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5718B6B0089; Wed, 15 Mar 2023 12:36:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 32B5A6B0088 for <linux-mm@kvack.org>; Wed, 15 Mar 2023 12:36:38 -0400 (EDT) Received: from smtpin17.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 08CED1A05D1 for <linux-mm@kvack.org>; Wed, 15 Mar 2023 16:36:38 +0000 (UTC) X-FDA: 80571686076.17.E6F58F6 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf16.hostedemail.com (Postfix) with ESMTP id 9C5CB180016 for <linux-mm@kvack.org>; Wed, 15 Mar 2023 16:36:34 +0000 (UTC) Authentication-Results: imf16.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NAl65g0X; spf=pass (imf16.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678898194; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=0+QymJ+GCZW28tJ8JK9HTXv9GxubpscA9882LeMgv9w=; b=Sr7DceMjTYlJicyWK22cov23wa/CGIoUNuNqq2Vzle10ML1SpNY3CD2V0I8rG49wpEfaoN Mi0mDkQVxywGAn/Q8UxSarXb9kC4Oo3T3/5avK+PudefmwM7KnWub/TB+BbEN5qpcw2uFK 1ezMxaFFmChLPiYcDPmNGer9d1Dzs9c= ARC-Authentication-Results: i=1; imf16.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=NAl65g0X; spf=pass (imf16.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678898194; a=rsa-sha256; cv=none; b=ZVXW6yX8+UxMkcIh3CJDntl+voewOECBTmevSakpAiuVl3FtikmdxfQrXqhPubg9JbMgw+ yf1/cgy0jvtX/LXCM9iDfnuI4PGJBrx8MsKhum5/t3qYHXvRQmVXITxlTE9tNwyAIlJzO8 lGw8QSpOXBwdW5Hzacx5F5VQFjYF9pM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678898194; 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=0+QymJ+GCZW28tJ8JK9HTXv9GxubpscA9882LeMgv9w=; b=NAl65g0XRxxRMByGwfkB6b2XFF1k6l4LoHxnoxY/0emKTJKeHUD6ENCPtcMRREi6oxXZhv HW/HegjFqpdAIO/1VFOSA2m9dnogfvDsEkMHXQAs2zIECQMKBSydIwUvhKqVDMdiZJ+HYm ls2xd94lDC4z/pf87Nmh2rTGkL+/o2E= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-132-0_two9ifOYW8-fQttFHzIw-1; Wed, 15 Mar 2023 12:36:28 -0400 X-MC-Unique: 0_two9ifOYW8-fQttFHzIw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DCA38858297; Wed, 15 Mar 2023 16:36:26 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id C161AC164E7; Wed, 15 Mar 2023 16:36:24 +0000 (UTC) From: David Howells <dhowells@redhat.com> To: Jens Axboe <axboe@kernel.dk>, Al Viro <viro@zeniv.linux.org.uk>, Christoph Hellwig <hch@infradead.org> Cc: David Howells <dhowells@redhat.com>, Matthew Wilcox <willy@infradead.org>, Jan Kara <jack@suse.cz>, Jeff Layton <jlayton@kernel.org>, David Hildenbrand <david@redhat.com>, Jason Gunthorpe <jgg@nvidia.com>, Logan Gunthorpe <logang@deltatee.com>, Hillf Danton <hdanton@sina.com>, Christian Brauner <brauner@kernel.org>, Linus Torvalds <torvalds@linux-foundation.org>, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Christoph Hellwig <hch@lst.de>, John Hubbard <jhubbard@nvidia.com> Subject: [PATCH v19 11/15] block: Fix bio_flagged() so that gcc can better optimise it Date: Wed, 15 Mar 2023 16:35:45 +0000 Message-Id: <20230315163549.295454-12-dhowells@redhat.com> In-Reply-To: <20230315163549.295454-1-dhowells@redhat.com> References: <20230315163549.295454-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 9C5CB180016 X-Rspam-User: X-Stat-Signature: hdfp69jc6y48j6juamyawrp5f9ac58s7 X-HE-Tag: 1678898194-283591 X-HE-Meta: U2FsdGVkX18nwWXKpXBRM6uPUD7dEQdELuy4QkhtqwdF5dQsbOn79HBZs2gDOVr6yvRZxJSsDiSosDcCwjdXep8yJT7Nsj/wCtDxrS64Yr+wpQ6UtMIwSy3UKYnNBcGH7p89qX1HEuX6mhOMBStFnJycDEwXC/WQXio98fFzKHDeAO91ULR05EMaoZDxlZScBqvkImT2EvJYzzEn7CfRfdwc5nwcIF3ESojHd3bRh6XJ0r9USHe9aVxJ1/2BobYXDoPARbZFu+oClOnveZsGuhcnltpUshITo20nqc20OrYIqBN7UdBR9e0jWe+M620tb9r4wBQMQM3SR6cdzLa4negcDIhKV7wzaAg4KcbhzL1IA+8r1tzDPzAZiX/be0PsFh/o7kpx4BD1RLzkbB9z4XYn6q0Cl4ngUOxFdEMXFiOFxaV3wN4lIcRlnNlsf4vc8kiqKGfs8aJYMK9i78RwJoHJhPmGbAUqZGK7YMyyi5ozz6u6HmiN9Y+6SsSUcK5AeRNDotlFJ3xx8gbG3coDcFMwfwwv9WZHvhj1Mkl1O0hNw47uvS7fjJoMSTo5XCm3TXXN1MOQPRYeKSisB4aQeSb4JcYHca+/NzoUOdOrA0+hDiizT/+A6vtJc3war6xGn/1nhamo4/Gz4wpd6NaWnlgrg1Dy28Z6I1NzNa14xe2TAyM3Owd/kMZW7x3Yb+dhHW+VDo27dl6KbtOLo+NcnVsrHPnlXlwbNc3KOMm7Z4Z9/rF4i0k5K6kofFAs0p3N03KdMlg5tEvFH585BKlsCYoqYkN7CvO3mJwhqIdiTBUwapZvsedrVcLjj8QbdEOjKTc8lojw3+ycOlVJxriAZ06Q5gu1HnTE9jjYJE4RQTddnTpeDkneMaJAdnVomjQewy3V/HQvUkzJTxcdaAsZpKbLRnR9QQGKRKH2XmDiQvsWvx69TY7LMZfNWmw++euDBwKIcVy83TE/Rr8jkI9 D8z5qH6y sdoqrgLOz3a9E7bd+Z2kXjiLbZ5yBG7koJNzD0WB06ouP+AAHds74jput4fMkUheXPVuvWyCO+qUJZXrJOspQg2GW9GZC80Gb/QGQjl2SfTSocNU760871a5i7PrmMAp3j5a8fclvCfIVyURQOz/RkFjs0NdmNtPqr4r1zPmqcd6A/wb36VEK0g+SX7Ou98UOmkRLnnWaR+AUu5EFBUGeu3jj2jq+N3icN0Rn7bEF2AvEt3SKdtVmkNvjq259thKiJfC44iX3/azDwEFy5yqr2N1gLx0cp8R8r3Am6ATqjPHO6T9dvkgJL5TiYGTf3uOL3E35K8u+umzNL6Ez2U+I0jopSCsJdgcHTi20LhfZ6Q5mz2Y6hvnKooBu0pZBlQZiAAVc9RDwK5dOGcBOHyipa5rMU4rausbSN3VOBbrbLJ9dY7li9OS47WAuubMDMquvRqUVW4/63/GLAQ1sGiXW+ilJtnyQ3p+sv0bAXRGUfQtMMXs= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
splice, block: Use page pinning and kill ITER_PIPE
|
expand
|
diff --git a/include/linux/bio.h b/include/linux/bio.h index d766be7152e1..d9d6df62ea57 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -229,7 +229,7 @@ static inline void bio_cnt_set(struct bio *bio, unsigned int count) static inline bool bio_flagged(struct bio *bio, unsigned int bit) { - return (bio->bi_flags & (1U << bit)) != 0; + return bio->bi_flags & (1U << bit); } static inline void bio_set_flag(struct bio *bio, unsigned int bit)