From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03F1BC35268 for ; Wed, 14 Oct 2020 21:01:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AA61B2224E for ; Wed, 14 Oct 2020 21:01:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602709318; bh=Nb1AD+j8UukwuXvnEhaadR1NrsjSlSwCqyfUULFYXog=; h=Date:From:To:Subject:Reply-To:List-ID:From; b=lcFMivEsaSgenV7sLLTDL2y/OsjBPVtC+MaStAALdSUwQKTMmSsVDPQZwEAvcI7jx I+MX3dOfJoDTzwKZHidzmMPy6ymOQF7a8Ei/LECfYz1KQuPyoik6sIdaWHqcTqmkuQ bOnP6deER8kxDgfU0nR/R57sjr9Q466qsIwfwYXg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730579AbgJNVB6 (ORCPT ); Wed, 14 Oct 2020 17:01:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:51390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728330AbgJNVB5 (ORCPT ); Wed, 14 Oct 2020 17:01:57 -0400 Received: from localhost.localdomain (c-71-198-47-131.hsd1.ca.comcast.net [71.198.47.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9D80622253; Wed, 14 Oct 2020 21:01:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602709280; bh=Nb1AD+j8UukwuXvnEhaadR1NrsjSlSwCqyfUULFYXog=; h=Date:From:To:Subject:From; b=Nz2PTRcnouUfqm9gVvrcsKBtHPfOBBMGbU86dIUIAVB1q1NL5Vs6Wu+539PA46F+Y qh611PN+FGbu7rnzEnwVLZCaIzpM0DYphPRjdQbg+FZpYA6/dkACfpEs8IckSFLpcf iy4FNH4ypE8/aAcDJBAE3SSf1U6bIxt4rLKBdN6k= Date: Wed, 14 Oct 2020 14:01:20 -0700 From: akpm@linux-foundation.org To: akpm@linux-foundation.org, mm-commits@vger.kernel.org, richard.weiyang@linux.alibaba.com Subject: [merged] mm-mmap-not-necessary-to-check-mapping-separately.patch removed from -mm tree Message-ID: <20201014210120.pOFETK-Xd%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: mm/mmap: not necessary to check mapping separately has been removed from the -mm tree. Its filename was mm-mmap-not-necessary-to-check-mapping-separately.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Wei Yang Subject: mm/mmap: not necessary to check mapping separately *root* with type of struct rb_root_cached is an element of *mapping* with type of struct address_space. This implies when we have a valid *root* it must be a part of valid *mapping*. So we can merge these two checks together to make the code more easy to read and to save some cpu cycles. Link: https://lkml.kernel.org/r/20200913133631.37781-1-richard.weiyang@linux.alibaba.com Signed-off-by: Wei Yang Reviewed-by: Andrew Morton Signed-off-by: Andrew Morton --- mm/mmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/mm/mmap.c~mm-mmap-not-necessary-to-check-mapping-separately +++ a/mm/mmap.c @@ -895,10 +895,9 @@ again: anon_vma_interval_tree_post_update_vma(next); anon_vma_unlock_write(anon_vma); } - if (mapping) - i_mmap_unlock_write(mapping); if (root) { + i_mmap_unlock_write(mapping); uprobe_mmap(vma); if (adjust_next) _ Patches currently in -mm which might be from richard.weiyang@linux.alibaba.com are mm-page_reporting-drop-stale-list-head-check-in-page_reporting_cycle.patch bitops-simplify-get_count_order_long.patch bitops-use-the-same-mechanism-for-get_count_order.patch