Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp724962ybl; Fri, 16 Aug 2019 03:03:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRq5RZCZ/mkOJvD1riIZ32j9tNZEtrF8gTQc15YYRZ2f+LJj15Xt8tbCa6oVdweCzZ/e1y X-Received: by 2002:a17:90a:1aab:: with SMTP id p40mr6375196pjp.7.1565949794776; Fri, 16 Aug 2019 03:03:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565949794; cv=none; d=google.com; s=arc-20160816; b=xsTNNlblYnu8hTntN2ZVMFtRrPvykTdh4320BzZuIxQiEu5LNKDzB2ERPFwqiw7fI5 vrXBAormqaH6HQnkZggqMUe+cWfkWM6DzdKe83vnYbVBTZCsC+tuhnjj7dohy/ptt6qH 6z2QxY0Y0c7/iIm5742ST0UAm8xEyzw3LcLRRhQr3SWGK0P0QL349fTZENDQ34BxsXlt Z0hGSiA98T3omUiNL81wD0hfs2q+JJwXhqLT/iRnQo1siUbcJ3EkpgsHTKwZAs2ze5Ht 3Zq3X2lIBwS9J/E/q8SO70H+SmJJ1Mue646fIsJ9Bxu1YCphtAzEvjPJdvbHetOYsTQ4 yl+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=dMVmOFAdlQGFJzqtJ1h7WYhYTMVvFP8CcCU6zrWreZA=; b=GaZjgxeIDb2lGKn1uFN8pOsHb2bhhw1wKMBWmDL8T5x29vEAVrI30sr5O9YQX2QTpM Jdw2TPjsKpWfCSC8J4QKUrTWQrq/pb7i+ZIyD8FJy/7xkHJdVtLeBpEqul8tXjNKfb15 ZrXr/rbjtWWfty4Wd9AKPc2Wy8C2aYT6yL2oc9kRxDmXfRxmlGoK1dRuD/13Ko/QO5h9 zmYQVV/hAjmceajGyXg9yFmX+jWuD9shF/Zu4lxezypUxQdjhSVVSerBMXZfRGGNS1+W qp0LAotodge9mJgVVFKSnwmrvNH27GtzGZQvgw5ioHdsdSYa6SaJsmjlkncIoKdaRyaE QnDw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si3746219pls.116.2019.08.16.03.02.57; Fri, 16 Aug 2019 03:03:14 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727020AbfHPKCL (ORCPT + 99 others); Fri, 16 Aug 2019 06:02:11 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:9237 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726882AbfHPKCK (ORCPT ); Fri, 16 Aug 2019 06:02:10 -0400 X-UUID: 0b041ddbb7cf48c9a475ca5cb00b09e1-20190816 X-UUID: 0b041ddbb7cf48c9a475ca5cb00b09e1-20190816 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0707 with TLS) with ESMTP id 706142265; Fri, 16 Aug 2019 18:02:05 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 16 Aug 2019 18:02:05 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 16 Aug 2019 18:02:07 +0800 From: Miles Chen To: Hugh Dickins CC: , , , , Miles Chen Subject: [PATCH] shmem: fix obsolete comment in shmem_getpage_gfp() Date: Fri, 16 Aug 2019 18:02:04 +0800 Message-ID: <20190816100204.9781-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace "fault_mm" with "vmf" in code comment because the commit cfda05267f7b ("userfaultfd: shmem: add userfaultfd hook for shared memory faults") has changed the prototpye of shmem_getpage_gfp() - pass vmf instead of fault_mm to the function. Before: static int shmem_getpage_gfp(struct inode *inode, pgoff_t index, struct page **pagep, enum sgp_type sgp, gfp_t gfp, struct mm_struct *fault_mm, int *fault_type); After: static int shmem_getpage_gfp(struct inode *inode, pgoff_t index, struct page **pagep, enum sgp_type sgp, gfp_t gfp, struct vm_area_struct *vma, struct vm_fault *vmf, vm_fault_t *fault_type); Signed-off-by: Miles Chen --- mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index 2bed4761f279..fed9ebea316c 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -1719,7 +1719,7 @@ static int shmem_swapin_page(struct inode *inode, pgoff_t index, * vm. If we swap it in we mark it dirty since we also free the swap * entry since a page cannot live in both the swap and page cache. * - * fault_mm and fault_type are only supplied by shmem_fault: + * vmf and fault_type are only supplied by shmem_fault: * otherwise they are NULL. */ static int shmem_getpage_gfp(struct inode *inode, pgoff_t index, -- 2.18.0