Message ID | 20230214171330.2722188-14-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 45BA5C6379F for <linux-mm@archiver.kernel.org>; Tue, 14 Feb 2023 17:14:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D30196B0082; Tue, 14 Feb 2023 12:14:32 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CB6D66B0089; Tue, 14 Feb 2023 12:14:32 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AE1776B008A; Tue, 14 Feb 2023 12:14:32 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 8EA546B0082 for <linux-mm@kvack.org>; Tue, 14 Feb 2023 12:14:32 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 1DD5712024A for <linux-mm@kvack.org>; Tue, 14 Feb 2023 17:14:32 +0000 (UTC) X-FDA: 80466546384.22.787290E Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf18.hostedemail.com (Postfix) with ESMTP id 39F741C0017 for <linux-mm@kvack.org>; Tue, 14 Feb 2023 17:14:30 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=cFjtMRy+; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf18.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676394870; 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=9PNg3WPaFWzxoLjSof2qU8psox3R+qpqOMDOMyjiLi8=; b=AyuiWmFghFkCO2CDna70j80ucUfORn9KeARVkcX1abM+dHgAeivCNbmCuF7noX689gf5fK YRXxrIvnyjc0RMdptZpVz2e2TlpAPapHgv/p/oD9BKOTNW0j6xYpStut8iJV6iIBIm+pdA F4AkcaJvBfgZGJ2RKX0tEQDr74aA3SE= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=cFjtMRy+; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf18.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676394870; a=rsa-sha256; cv=none; b=7EDRwA524X/t8vS+d+o7GnqMVuhl/exPkT+xjYzRAM+PWbewG2WXt3YbRGrruqyepIdw3p HwowFtjHzP+/Ukz6WxbEXruPioZT91YOmZv2on9aTIO4bUBvl8Ja1IP6wqRt55Bx1cgAXU l4PKvfsZAGvJw7esUn/gJL4hdyDtnXY= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1676394869; 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=9PNg3WPaFWzxoLjSof2qU8psox3R+qpqOMDOMyjiLi8=; b=cFjtMRy+FpHk/63IaSJEpFZgOmHqIkVgvgee5SWknVKflChtvzVrdw9D0batV7nlLdaTPr 2GKtCRrkzMWHcAs4zR/ODoeS2OETQGCmdTxPJwgo8MRGVh7BYMzFsk1efyYqkjiR4+1PLw S8pmOZ8OSGtEqBQda2pwv7eIQTJaHk8= 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-88-Gp-NasbONamSrWK0LXoPrQ-1; Tue, 14 Feb 2023 12:14:22 -0500 X-MC-Unique: Gp-NasbONamSrWK0LXoPrQ-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 8698B1C08798; Tue, 14 Feb 2023 17:14:21 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9817DC15BAD; Tue, 14 Feb 2023 17:14:19 +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>, 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 v14 13/17] block: Fix bio_flagged() so that gcc can better optimise it Date: Tue, 14 Feb 2023 17:13:26 +0000 Message-Id: <20230214171330.2722188-14-dhowells@redhat.com> In-Reply-To: <20230214171330.2722188-1-dhowells@redhat.com> References: <20230214171330.2722188-1-dhowells@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 39F741C0017 X-Stat-Signature: c8wqzfpqzf8b51ndbutqe94fp75p1ftr X-HE-Tag: 1676394870-91500 X-HE-Meta: U2FsdGVkX18JZnENfd1OiM7yyKXp4pXh7exi0T+8jbF8zRguke/e+woTU/epbPQk+oJ4hOtvYKktg0lWJ8eeQ5IbFkVfDnCRLDAfECCwqIJE+InPI/iSWwhM/hZpwJdYIHJF/3d14/0LXg67795VCEtw3n3zDmNtjp5yLJLowcWJurCXuNNSl0AdoygiFgx9dcmMk9s7F13tzdEwDx9HEdMV7wrbojQu5+Zf/9AiJ4kxK12N4j1kp24bto2uvJu014RuFPeNwJlOSeMxUiAvjxijBnFzIvJ8TxxHQmKgdQ324M3nSFmgghCcNfzVo0gwZZ5vlN8M4EcLSWHfVDckoczrhngKe6mg+s1Za/EVOd5KaTW8Eag0pTD3HjRMi4f1uLV6jPKzyt7luL0X4qvmJDdJKF1TtcI1MTwWSOdot8/F66AyiR6Z18SVTm0ztbBEk/q18zx7juWj3Az6/KXtIHcDghqbf33Q5nyn7FQsFEWnXZZ5vFga3iYPPMAX1vTkT1Hnbe6TB8iBXvNMMz3im4a2626hKzdN4ju0DiuNwhPI42dSVgXqYn6KUT+0rUJbjsO4IBYkgCwO1OuHW9/XZI1X45BA/NDsig+/mhKb2C48WQ/QTtjfPSR48umXQNV6UmS8IepVUxgrTZgQs/bo/TELT6cgBCLkylSYnSquWv/F3JnVNdy3NV+TobqrxDg/HQVUICutoZPBwB6LhJTfePl3mtEjp7iHd3cLgsKbrnw27Mw2ksqEwj5xN4IbUK9tXIXfKQCZXNXfnC4H5olxS1AEeZqzCOwlpGY+py4qoauha3pOm/NFdquXVjdA41vozQ1YItA6YzMPfDPnsIIion1C3T5elxCprxKWUiChYypUkCCjLbCMDJdPGvtDap1fEgH/cCStUfVEvqQmDkekwxZYivpLrQJlC17Y6ig0Xo8o5CTWJZxRdYF1TlAmW0JpsYZTIJfpkrA6zXTcSwA umJBLZk4 OhzNk1isyvb1VYqcRNJ8D8auQQEHD1QIApLdEYC/lYMNMfXCRBULMTe8TvYcY8MBPkl0N0PVbe9jJFwI3Q+1FbcIOy/+OqCqbMis/dn7yMR7hiHlZhZmAF2XuVicNHtuFiXccdH33m/CBxL9CSLeSHvhCtq/W3F2ewoUlhPr0QOoRnSnqphYYAeYePypp+iupYOLCFJgpcOizioZa8v78b5n456zW9ejIAZVb9XW+ePp0ByvK5vY/c8dG+QqtqzEVJz7KFAAeRoYUaY6BCrAwgu4X07vs4fA/gRRdbCaKHJAbJwKXcOuUtBRt8/XUYbj70qsMeNspCXQwz/dxP65ShUpxWdEBGXnYSkj1OlCzTYBPSdHKw7JM/S6TGRC2e1kXv/yNohxKJ96cpR3YZGjhIJ/7J+hWcrXk8F2kCh/A1Nqn8PApn5Bg3cejCLHaCfYlt3DS 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 |
iov_iter: Improve page extraction (pin or just list)
|
expand
|
diff --git a/include/linux/bio.h b/include/linux/bio.h index c1da63f6c808..10366b8bdb13 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -227,7 +227,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)