Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp1161996pxt; Sat, 7 Aug 2021 02:37:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwy4fNyOk8t2lZoZpYHDcr+l/+eQqT0RasstE7TXRmxCwC5ptpH//ekzcy/lvhL+rLVZsmN X-Received: by 2002:a5d:9eda:: with SMTP id a26mr1446853ioe.166.1628329037229; Sat, 07 Aug 2021 02:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628329037; cv=none; d=google.com; s=arc-20160816; b=Zl0tuzSA0dfVPJWfxl4BNp9U8xZlypPHXS9+A3M7vlFdOjvzhGA5UK9vD00JspDv9m pCYD+B/9lcCD/Q45LI7z8qjaBH4S/fwyGl2faDNxufq0z2OvDYi2YpPXwf9UmXTpNU3B WUIwYopeo/5qCYgkokRfAFse2k3bTaDzhI1T0jOL0afyxSpsmWX74nHs0i2+iihrgRDZ 12T937witIv46BFLpAM/COGDiNOCcFcDKi/adbMq77JsTVy0P+AW2Y8iA0DwdmqbrgKf HSMGXe4iBu6b/U27AbknGykbZzuEyTMB6YzXig7K9gr3zOvOKvolTuNOIpUIBmh6aMQ3 Lj8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=fhB8EZzma+9ff/IpsKa8YwmQ6TD3ILz0i6N1JI/m4YY=; b=JYbevNxPfLLFS38C153yMkxtyLew2V9u/aX6nh2+dPSATQW75ro8k2+YTgck40xw3e vUW5MFq1Uc3cnA5mO5hPbCLWbS00yVfLaNQq3paRwVqA6kvw+60VqmK+88Zk/G0Y1XYL OM7qXy6TODYjvuLsq0ebkudo30lkwij/WNpQbVTHgQZyqHyIM8MUF0YtkUNAszaVRIq5 wtj+D/ya/lBYo0496PCiMDbs39Gxu/7aCj5RYpHoKXPvTbiGEwNq1vvbyiNu+VaPJV9f 2TWvpc4EGXsOgAl+8EBa1uk9ghTZTRCPprQ1Tok/PI2eYtgQlLQG67edryH0dCtnmXTu UG0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si13051594iot.89.2021.08.07.02.37.05; Sat, 07 Aug 2021 02:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbhHGJgh (ORCPT + 99 others); Sat, 7 Aug 2021 05:36:37 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:13245 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231594AbhHGJgg (ORCPT ); Sat, 7 Aug 2021 05:36:36 -0400 Received: from dggeme703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Ghcfc0MYhz1CSrQ; Sat, 7 Aug 2021 17:36:08 +0800 (CST) Received: from huawei.com (10.175.124.27) by dggeme703-chm.china.huawei.com (10.1.199.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 7 Aug 2021 17:36:17 +0800 From: Miaohe Lin To: CC: , , , , , , Subject: [PATCH 0/5] Cleanups and fixup for gup Date: Sat, 7 Aug 2021 17:36:15 +0800 Message-ID: <20210807093620.21347-1-linmiaohe@huawei.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.27] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggeme703-chm.china.huawei.com (10.1.199.99) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This series contains cleanups to remove unneeded variable, useless BUG_ON and use helper to improve readability. Also we fix a potential pgmap refcnt leak. More details can be found in the respective changelogs. Thanks! Miaohe Lin (5): mm: gup: remove set but unused local variable major mm: gup: remove unneed local variable orig_refs mm: gup: remove useless BUG_ON in __get_user_pages() mm: gup: fix potential pgmap refcnt leak in __gup_device_huge() mm: gup: use helper PAGE_ALIGNED in populate_vma_page_range() mm/gup.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) -- 2.23.0