Message ID | 20220602182159.248387-4-shy828301@gmail.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 92B91CCA47B for <linux-mm@archiver.kernel.org>; Thu, 2 Jun 2022 18:22:10 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C5D956B0075; Thu, 2 Jun 2022 14:22:09 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id B47C86B0078; Thu, 2 Jun 2022 14:22:09 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9E6176B007B; Thu, 2 Jun 2022 14:22:09 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 884BE6B0075 for <linux-mm@kvack.org>; Thu, 2 Jun 2022 14:22:09 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 3E225813D5 for <linux-mm@kvack.org>; Thu, 2 Jun 2022 18:22:09 +0000 (UTC) X-FDA: 79534115178.15.CF4358A Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by imf03.hostedemail.com (Postfix) with ESMTP id 8BDA420056 for <linux-mm@kvack.org>; Thu, 2 Jun 2022 18:21:53 +0000 (UTC) Received: by mail-pj1-f43.google.com with SMTP id w2-20020a17090ac98200b001e0519fe5a8so5492898pjt.4 for <linux-mm@kvack.org>; Thu, 02 Jun 2022 11:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TeR+saO9bGVSVDYLkT6whuJkztc98Y7uqJRw9Zwr6CA=; b=lox+mE5DUQIYDSINDMGLvp+f+4p6bG1alTdnY/p5yaPQT5MhcSCKJI+8s/kk/vYrgz FmcQS7G4CMRDlFwl2en89XVTfwF/hAIbYQkKoMHAdDWhFIaHkqtdpSXvA6PBc63CpxCI QdpyQZOXfOltvUHMi4sMlFeaVN4KN8g5IAllCh/D2rckkxATCgwcej4OmeqCVYOwgUG6 Hp6eQFXuIu0CX2Z+YMXbCI3f+zfr9qllgXYuEBQxqBuLFGxngc/1cMy4KaQscxiRzwMg gUYcE+aF5Qyi06JBD45s6qomtBFmAr3AdtDn3TQFbQkrcOfkcvp4efLZuD1aC1dcrnxH AqdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TeR+saO9bGVSVDYLkT6whuJkztc98Y7uqJRw9Zwr6CA=; b=5zBznr2SFm6Agt/55uHAXx5wXLk+7CQVFWoi9vm6kFjZKVA5AZbES9QuILRd7PVdFA vc3GFoyEixkN3+VZ/+rmaW+GHjw908AXJ0r02zjFobBxxzZSipZaOoVYgk2LUKJ11MFd iyWiy+3ZpiNCgSSWciDwFm2XG2mrQjNqJmiQL58S+X6Qz+6NyU3FhrtElX3zxRRxHNGX LxoQS2MYd5AehDncRISKMbftJiwQ2UsRyoZcPZOlzcpSAoKSMBYiK9Bj5IorzwxgM9k+ V0qJgxCBER6tIIujZU0Y4vmn5PCC0rmylr38ngFPyCTlSHR/Twqrkw0LIIzLGxoCTVtQ U6gg== X-Gm-Message-State: AOAM5326v70JvrJoPEcRuDyQcvwFEuKZ2/IoogusCL/j4Bd3IP9duIKB gr1kL5ZYzLAF3oyOJaHeCvo= X-Google-Smtp-Source: ABdhPJwUloxNPQ1Kt3swhvWRsLalZE4j17qsysUEVMeRb96vd1+i3T7NbIkG0a3KYeFbHoyp7u9MwA== X-Received: by 2002:a17:90b:3b4c:b0:1e0:3354:5e5d with SMTP id ot12-20020a17090b3b4c00b001e033545e5dmr41812977pjb.239.1654194127979; Thu, 02 Jun 2022 11:22:07 -0700 (PDT) Received: from localhost.localdomain (c-67-174-241-145.hsd1.ca.comcast.net. [67.174.241.145]) by smtp.gmail.com with ESMTPSA id t10-20020a1709027fca00b0015f2d549b46sm3866779plb.237.2022.06.02.11.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jun 2022 11:22:07 -0700 (PDT) From: Yang Shi <shy828301@gmail.com> To: vbabka@suse.cz, kirill.shutemov@linux.intel.com, akpm@linux-foundation.org Cc: shy828301@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [v2 PATCH 3/7] mm: khugepaged: remove the redundant anon vma check Date: Thu, 2 Jun 2022 11:21:55 -0700 Message-Id: <20220602182159.248387-4-shy828301@gmail.com> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20220602182159.248387-1-shy828301@gmail.com> References: <20220602182159.248387-1-shy828301@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=lox+mE5D; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf03.hostedemail.com: domain of shy828301@gmail.com designates 209.85.216.43 as permitted sender) smtp.mailfrom=shy828301@gmail.com X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 8BDA420056 X-Rspam-User: X-Stat-Signature: ctwxshcy51739ua7oxmxk36rs6hu5bue X-HE-Tag: 1654194113-418909 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 |
Cleanup transhuge_xxx helpers
|
expand
|
diff --git a/mm/khugepaged.c b/mm/khugepaged.c index d0f8020164fc..7a5d1c1a1833 100644 --- a/mm/khugepaged.c +++ b/mm/khugepaged.c @@ -966,9 +966,6 @@ static int hugepage_vma_revalidate(struct mm_struct *mm, unsigned long address, return SCAN_ADDRESS_RANGE; if (!hugepage_vma_check(vma, vma->vm_flags)) return SCAN_VMA_CHECK; - /* Anon VMA expected */ - if (!vma->anon_vma || !vma_is_anonymous(vma)) - return SCAN_VMA_CHECK; return 0; }
The hugepage_vma_check() already checked it, so remove the redundant check. Signed-off-by: Yang Shi <shy828301@gmail.com> --- mm/khugepaged.c | 3 --- 1 file changed, 3 deletions(-)