From patchwork Thu Jan 16 16:39:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Gunthorpe X-Patchwork-Id: 11337417 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E7EF66C1 for ; Thu, 16 Jan 2020 16:40:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B4CFE207FF for ; Thu, 16 Jan 2020 16:40:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="jHU+8/LZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B4CFE207FF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id D9E408E0080; Thu, 16 Jan 2020 11:39:59 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id D4F0A8E003F; Thu, 16 Jan 2020 11:39:59 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C17408E0080; Thu, 16 Jan 2020 11:39:59 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id A83628E003F for ; Thu, 16 Jan 2020 11:39:59 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with SMTP id 5F541180AD801 for ; Thu, 16 Jan 2020 16:39:59 +0000 (UTC) X-FDA: 76384059318.08.girls57_74441c65b6c33 X-Spam-Summary: 2,0,0,07c4635f299f1544,d41d8cd98f00b204,jgg@ziepe.ca,::daniel.vetter@ffwll.ch:jglisse@redhat.com:rcampbell@nvidia.com:linux-rdma@vger.kernel.org:jgg@mellanox.com,RULES_HIT:41:69:355:379:541:800:960:973:982:988:989:1260:1311:1314:1345:1437:1515:1534:1541:1711:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3871:3872:3874:4605:5007:6119:6261:6653:7576:7903:8603:9010:10004:11026:11658:11914:12043:12048:12296:12297:12438:12517:12519:12679:12683:12895:13069:13161:13229:13311:13357:13894:14095:14096:14181:14384:14394:14721:21080:21444:21451:21627:30029:30030:30054:30070,0,RBL:209.85.160.193:@ziepe.ca:.lbl8.mailshell.net-62.2.0.100 66.100.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: girls57_74441c65b6c33 X-Filterd-Recvd-Size: 4500 Received: from mail-qt1-f193.google.com (mail-qt1-f193.google.com [209.85.160.193]) by imf03.hostedemail.com (Postfix) with ESMTP for ; Thu, 16 Jan 2020 16:39:58 +0000 (UTC) Received: by mail-qt1-f193.google.com with SMTP id d5so19378323qto.0 for ; Thu, 16 Jan 2020 08:39:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kWYbBeaMjs0GnQZYUjR4f7NNZZLfx+/6BfTHxNRD/ug=; b=jHU+8/LZbbz69x1x7+hY1xxeq08tg0bbO7OnYvZpt0LUU/5LsKurj4JxdEynEtQabm k58CyGef+KJZP7OEqOoGAo+rexwc0EiFjiMaZT1gqCerzyWVX7peuaMx1BpkhMoydjIc chajO6JL/EUqDZCpQRKDceG7baUHU8TcwqIyw8JxvzT7O4ihHtYYgquKgPUbxYcN9E5m ZMop92Iw005iXm90Ww5zHUjSEf/wvKCflpyGqbccVVa5puRd1yiF1f3fRl5gLtEgMlg0 sSHf4PSJV7ooXXczfYdSe7XGsfUkRQ8nRn/NZvOsjMs+kfx/8mUmZc94Bhdp26+D9W2R li2A== 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:mime-version :content-transfer-encoding; bh=kWYbBeaMjs0GnQZYUjR4f7NNZZLfx+/6BfTHxNRD/ug=; b=awlJGEsQmeVszcEWy6NA22w5p5skE8EYrur8kp/5ds/5XJSTCEaLH1FzcEQ+bzlsTm IUl59ElVO3NHRQOvvGyyYJ+x8OZJ7hGcG9ESfUktJkm3W3KDarvq5JssjoeMJS1WVvWR OytigvDSCAO7Z3wR6pv9sj9UzJfTvPOP7nxWsjeEnyzegcmLxfWTiP+3uYqhliw89jVe xqv3R2uXfjadJxmifcVCiZLG1JGPRIqQukC/TR20/JkOX5jr2JlnTvLfHQq1a9or8qIS TIYtLGinKELqQYWdtj/kvK/XPTtQW8oj33pN8hsIZaUbtqWp/E15gD+nqu3gbkifgLck ZFhg== X-Gm-Message-State: APjAAAWy1UJ9HLDm/tsfx6IN+q49OR7jqU3jGDnH9gsa5Ea0UOQaryci ANBXsCAejl191bBSe21snvTUYtU2i5Q= X-Google-Smtp-Source: APXvYqzfns8ljtcO2JFCJbXZPLfVUE3/cIm6iWQjaO8uPfYNRqQtNCFlZrZCPQFtsUY9k/vw/Qrh2A== X-Received: by 2002:ac8:ff6:: with SMTP id f51mr3262879qtk.60.1579192796991; Thu, 16 Jan 2020 08:39:56 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id u55sm11877069qtc.28.2020.01.16.08.39.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Jan 2020 08:39:55 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1is8BW-00072p-LF; Thu, 16 Jan 2020 12:39:54 -0400 From: Jason Gunthorpe To: linux-mm@kvack.org, Daniel Vetter , Jerome Glisse , Ralph Campbell Cc: linux-rdma@vger.kernel.org, Jason Gunthorpe Subject: [PATCH 0/3] Rename variables in mmu_notifier.c Date: Thu, 16 Jan 2020 12:39:42 -0400 Message-Id: <20200116163945.26956-1-jgg@ziepe.ca> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 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: From: Jason Gunthorpe Linus has observed that the variable names here do not make a lot of sense, revise them as discussed so the file has better readability. The new names are: struct mmu_notifier_mm -> struct mmu_notifier_subscriptions mmu_notifier_mm or mmn_mm -> subscriptions The per mm_struct memory that holds all the notifier subscription list heads and interval tree mn -> subscription (of type struct mmu_notifier) A list based subscription to notifications mni -> interval_sub (of type struct mmu_interval_notifier) A VA interval based subscription to notifications I had originaly thought to also change the struct names, and while they are not ideal, it seems that the resulting tree wide churn is probably not worthwhile considering the size. This is intended to have no functional change. Jason Gunthorpe (3): mm/mmu_notifier: Rename struct mmu_notifier_mm to mmu_notifier_subscriptions mm/mmu_notifiers: Use 'subscription' as the variable name for mmu_notifier mm/mmu_notifiers: Use 'interval_sub' as the variable for mmu_interval_notifier Documentation/vm/hmm.rst | 20 +- include/linux/mm_types.h | 2 +- include/linux/mmu_notifier.h | 86 ++--- kernel/fork.c | 4 +- mm/debug.c | 4 +- mm/mmu_notifier.c | 585 +++++++++++++++++++---------------- 6 files changed, 375 insertions(+), 326 deletions(-)