Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp56324imm; Thu, 30 Aug 2018 15:38:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZfbON3BqaEHPnx5qtPPljLWazgGjW1RptY2UUWDq/uQAfTo9yHlT5HtdRVAw6G4+TAS3S/ X-Received: by 2002:a63:e756:: with SMTP id j22-v6mr11712016pgk.185.1535668708446; Thu, 30 Aug 2018 15:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535668708; cv=none; d=google.com; s=arc-20160816; b=WbmWLst99E+Yd3xkZQd3c3gO1SPIgkleBnNb+wLHujGGArk2mNqVLWGjWmQ4R42Ikv 1EFf4B9GS+8lD8FklgtD9qyp8wNpiYt+0RK9mo1DnFO245yUM1XMTeouI5sphn371YWX Bxe3juZjyC4yMFyBwWBN0aj6mxv1swZpT7aG+N4RI4fjs5s+oppfDAaSthP1D2vlrYIk /lIx9Ulj/4R6Uv+q/2UjRq1ChMIlyglOPc+5Ov8aDVufpsqIRZk92wRq1BzGtkztrhAA vhutxxc60zXz/FSohlhjK+HuD+vi/GjmTjeP5Yw4SnoeyCgrOHUorg8HrXBGTLA5N7uo nErA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Njnb4DELLycSINkSTeBYdp4m9K7+Xl1KQVFgU0Z8DoE=; b=UqH7aCB+dSYAPatJ0MY6EowvXhiA33hhgmfSREldV/iG45jTRQ6D7UfePofbSqIfu1 NcVZ1YHcu/WgSp+uvjvFV9/9dMlN85I3mz2unchIUUYG0+t2/1db4G2Wn8fqJ1Uq8zVM KaymCtUTCaiTJ3PUonmOVP1aS0yxNbij6wBtqrIpM/OK9opy/tqSNjohNLbh5csRHrHq tZZ6XK8BbqweddMP3eBetbQBbp6ktxpQpA08qDJ8iylLqGyxIl8sppEumw6I5oLEoPWB yYuq4dqzcX1tXAfI9VZyxPc7KarMOkI927l2UkT7335hmN5CoulizyrhbxXpfLXqu8Pb IVNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hNl6NgmP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l13-v6si7626795pgr.291.2018.08.30.15.38.14; Thu, 30 Aug 2018 15:38:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hNl6NgmP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727706AbeHaCkN (ORCPT + 99 others); Thu, 30 Aug 2018 22:40:13 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37400 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727212AbeHaCkL (ORCPT ); Thu, 30 Aug 2018 22:40:11 -0400 Received: by mail-lj1-f194.google.com with SMTP id v9-v6so8571434ljk.4 for ; Thu, 30 Aug 2018 15:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Njnb4DELLycSINkSTeBYdp4m9K7+Xl1KQVFgU0Z8DoE=; b=hNl6NgmPhdSmxH4tYDvMzUnSdNTGdD3CSUs95WbFopwnvDxCudlHrJT/qPgbAVHD8N 8R2lv8knSru0Pu5QUbVCPGo7tj8tRguciT1t1e+M+655jDn4TEwN5GxTuN0nuNxqfGx5 qX5rteBavIVadNalChjDlufXtkCiRAyfiPrsrEic2oNtLWZE7REJUYzbD+N/n73Af3et FKqfpaLJsI77fwJJsnApEhTqhvL53OwJM9D5N3Ev7XtFz3zirjYIhyS3Us6Q610IIjDK kOXJZu1RTqI7zeo6vHcY2wapicZO4/jvnxgETl55ze0YRUHFZ45otMR4Pj4YLoW1c0FJ yjcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Njnb4DELLycSINkSTeBYdp4m9K7+Xl1KQVFgU0Z8DoE=; b=jEZPz/bzW/5WH4zi69OREX6GmQGxx11edgbpCmsBIhek0g60tA+JYEZhviUhIoKcU+ Bp4KM2riq3qQa4ive20LpFOTZ/K7UQh8S2+CjKBPq/gGezOt8P7Y7nW7Q+29kifaJJr1 7/PWQF0O2UrLt76eOmcs1z1cZJz/HmIgJ3RgHDdqUuCIKVM9OxZf/19lYkU/CdvyMM9U Tff+i+XZjHO2IEvAK00Aiq8vj0rzCtwcfPk5AVKVR0k4kvwB/eDDyb1GewXc63LW6ouo VIna7QAC3IhoFk3Ok1DpR/NVo/drUvVFw22UE3aKa+BEgrOGgIuZnCCSRTmuuOBwIQBP CtIg== X-Gm-Message-State: APzg51CVSYkgoT9GcQBIoytrPqd7S60AeF7b1kavBkSjaVzzRIde29fP vcjjZE2SZ9VPS8HvGlKR7YOLzmS5h8M= X-Received: by 2002:a2e:9198:: with SMTP id f24-v6mr8177624ljg.64.1535668546028; Thu, 30 Aug 2018 15:35:46 -0700 (PDT) Received: from Mort.jumbo.freeair (91-159-62-202.elisa-laajakaista.fi. [91.159.62.202]) by smtp.gmail.com with ESMTPSA id u28-v6sm1455376ljd.61.2018.08.30.15.35.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 15:35:45 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: linux-kernel@vger.kernel.org Cc: igor.stoppa@gmail.com, Igor Stoppa , Joe Thornber , Alasdair Kergon Subject: [PATCH 16/23] lvm: device mapper: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 01:34:22 +0300 Message-Id: <20180830223429.30051-17-igor.stoppa@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180830223429.30051-1-igor.stoppa@huawei.com> References: <20180830223429.30051-1-igor.stoppa@huawei.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Cc: Joe Thornber Cc: Alasdair Kergon --- drivers/md/dm-cache-policy-smq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/md/dm-cache-policy-smq.c b/drivers/md/dm-cache-policy-smq.c index 1b5b9ad9e492..b61aac00ff40 100644 --- a/drivers/md/dm-cache-policy-smq.c +++ b/drivers/md/dm-cache-policy-smq.c @@ -1200,7 +1200,7 @@ static void queue_demotion(struct smq_policy *mq) struct policy_work work; struct entry *e; - if (unlikely(WARN_ON_ONCE(!mq->migrations_allowed))) + if (WARN_ON_ONCE(!mq->migrations_allowed)) return; e = q_peek(&mq->clean, mq->clean.nr_levels / 2, true); -- 2.17.1