Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1773234pxb; Thu, 7 Oct 2021 15:02:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJymhDjFq2uXWXHV0AQzt5CUIbrARDqxeYdBsT3rY/9L7oCnVvuk25dGQcwR+eIw7vUOZG/p X-Received: by 2002:a63:8c4d:: with SMTP id q13mr1672598pgn.92.1633644145578; Thu, 07 Oct 2021 15:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633644145; cv=none; d=google.com; s=arc-20160816; b=xgfwGZLRDdfR5EZrH948jvvg2XEEQqDBvx7jhpPDUNJSCyGfrPSUIFYgKD4xni545C LwkgqdwtXKE+I+zFX0wj0D+23bcNvq/4JU3XVtQi9G+tCju/ANU4g97A+8H6r5TGHz4t ej8PyzNbsT/7IkcXFMz9IqQ4xgR3Cwheve28+I5ZTqtCA1K04mjn7bHIoBKKHFNq8wqF WVeo7x+IRk/3PLVGqo3O5dGr1RWGN/4A/n9mU64PR72Qt9wJcoUUbP83B9J7bKPY9wKy c5pkUb5nwUGUfDAK4SsTp2VMc069o9eUeiS7KgsBdn/krKvRiWn1C1cH2pxTtmVvsQJY 55/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=l3qN3MfhA2hn5WSk7ueIGscDIBqNVWdM54go8zsGIic=; b=y2XIwbhxPxCwXza7JuyC42EJnynPMawc2JDV9pZYnM/VIgtBG9TYEpvUsUx8kT+YdB ebQERn7YU0m3VWbiOd0HzqPQLdf+dLBah52o051U3HNZx6nQHBvrf3LfCWzwBM6EXFua lm+Hj3JDXfzjLiFuMuOIXbvAl/6xrBQPjk40xvhQJIu8Pu02xRunOCg53jrE9bpGg6S9 uNzzWu7GRdFyXC2cuIbo7FVEAf5uumD20I7Q/PMzvckkAZxzRFuPJ3n83oXZWzlyleVo Miwlh9PhCNL9bjxs0CGOAp/zyOW5rNMjyLMHXM3NTrQpYJ26couNJFItd43Fcmz9QNkY imZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Auj2KFW+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 10si34356887pfl.338.2021.10.07.15.02.12; Thu, 07 Oct 2021 15:02:25 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Auj2KFW+; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241328AbhJGSap (ORCPT + 99 others); Thu, 7 Oct 2021 14:30:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231340AbhJGSao (ORCPT ); Thu, 7 Oct 2021 14:30:44 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A538C061570; Thu, 7 Oct 2021 11:28:50 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id g8so26534512edt.7; Thu, 07 Oct 2021 11:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l3qN3MfhA2hn5WSk7ueIGscDIBqNVWdM54go8zsGIic=; b=Auj2KFW+kPtGThvhI+koW38dm6Ae65UgyBYLsvi9U0XXo9T/IielNC2jqDw9Hk4S7K fYVtZFT911RTIffZu7LmOnPmTF1KKDtK2U75lQ65ejFcBSpAN+P2HIh0FY/12zbaRHtf Wi1TsUfYqzj+7qGJ/+L+Kd+gCQ3jJk/55WFjJNZqrDjwcDQvgVle/2a4FR1TUgh6zDZ7 Go2uA6U4+bRUdLEs2EPp7ekzffIVKNFEx/jvizl77Fb3J2m5JS4RSQ2Q5cYnnv3fAL9q k1566krTjZnKWC7ueFrkBtcormsgRnk95T32xWXXKca8XQCDePLfHw8N7KNxm/Q7DGby WNYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l3qN3MfhA2hn5WSk7ueIGscDIBqNVWdM54go8zsGIic=; b=4oGo3fwtmAIX3hJV0QRY5UUI77wLxdwBq7FCuMYCes2cUWw0IYgVCkrw2Y4LvNGtur XIBf4W8w1JUlU+ah1CYPP3bNBitZmqqQlxABlxFg8HvHZCBil0ED4/L5xd+z7DjrNYX9 Dcer/gcmD3rbNxR0JEwqKOBasCNXt2hkTEG4f+GVkcqsEIc5AZcDtrIBazCA7Yl044xZ YyV++9jNFeAagmBH/lRRAjeDUNMGUCxS4H2/VRXG8vgr4rxyIA05fnw/RmsWgPB3cdXZ LVyxOfNh3P00HV7OgCpJgojEFuP9f/mnpEZ2eAvJEQjlNRmgL3TWl9ZGe8zxvvIyqYvO /pxg== X-Gm-Message-State: AOAM532jiTcb620vm1wrt3MM9OfANdEexMspV2oUx7jsuG3nbXF5E5dF tI8jpafDHXyZqlaAYm9cWebEm0DyrZmgSx7/M+M= X-Received: by 2002:a50:8d85:: with SMTP id r5mr8303074edh.312.1633631328877; Thu, 07 Oct 2021 11:28:48 -0700 (PDT) MIME-Version: 1.0 References: <20210930215311.240774-1-shy828301@gmail.com> <20210930215311.240774-3-shy828301@gmail.com> <20211004140637.qejvenbkmrulqdno@box.shutemov.name> <20211004194130.6hdzanjl2e2np4we@box.shutemov.name> In-Reply-To: From: Yang Shi Date: Thu, 7 Oct 2021 11:28:36 -0700 Message-ID: Subject: Re: [v3 PATCH 2/5] mm: filemap: check if THP has hwpoisoned subpage for PMD page fault To: Peter Xu Cc: "Kirill A. Shutemov" , =?UTF-8?B?SE9SSUdVQ0hJIE5BT1lBKOWggOWPoyDnm7TkuZ8p?= , Hugh Dickins , "Kirill A. Shutemov" , Matthew Wilcox , Oscar Salvador , Andrew Morton , Linux MM , Linux FS-devel Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 7, 2021 at 9:14 AM Peter Xu wrote: > > On Wed, Oct 06, 2021 at 04:41:35PM -0700, Yang Shi wrote: > > > Or maybe we just don't touch it until there's need for a functional change? I > > > feel it a pity to lose the git blame info for reindent-only patches, but no > > > strong opinion, because I know many people don't think the same and I'm fine > > > with either ways. > > > > TBH I really don't think keeping old "git blame" info should be an > > excuse to avoid any coding style cleanup. > > Sure. > > > > > > > > > Another side note: perhaps a comment above pageflags enum on PG_has_hwpoisoned > > > would be nice? I saw that we've got a bunch of those already. > > > > I was thinking about that, but it seems PG_double_map doesn't have > > comment there either so I didn't add. > > IMHO that means we may just need even more documentations? :) > > I won't ask for documenting doublemap bit in this series, but I just don't > think it's a good excuse to not provide documentations if we still can. > Especially to me PageHasHwpoisoned looks really so like PageHwpoisoned, so > it'll be still very nice to have some good document along with the patch it's > introduced. OK, I could add more comments for this flag in the enum. It should be just a duplicate of the comment right before the PAGEFLAG definition. > > Thanks, > > -- > Peter Xu >