Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757320AbbKFGcX (ORCPT ); Fri, 6 Nov 2015 01:32:23 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:31610 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757213AbbKFGcV (ORCPT ); Fri, 6 Nov 2015 01:32:21 -0500 Subject: Re: [PATCH v1] mm: hwpoison: adjust for new thp refcounting To: Naoya Horiguchi , Andrew Morton , "Kirill A. Shutemov" References: <1446790309-15683-1-git-send-email-n-horiguchi@ah.jp.nec.com> Cc: Wanpeng Li , Andi Kleen , Andrea Arcangeli , Hugh Dickins , Minchan Kim , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Naoya Horiguchi From: Sasha Levin X-Enigmail-Draft-Status: N1110 Message-ID: <563C4955.3000300@oracle.com> Date: Fri, 6 Nov 2015 01:31:49 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <1446790309-15683-1-git-send-email-n-horiguchi@ah.jp.nec.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Source-IP: aserv0021.oracle.com [141.146.126.233] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 719 Lines: 18 On 11/06/2015 01:11 AM, Naoya Horiguchi wrote: > In the new refcounting, we no longer use tail->_mapcount to keep tail's > refcount, and thereby we can simplify get_hwpoison_page() and remove > put_hwpoison_page() (by replacing with put_page()). This is confusing for the reader (and some static analysis tools): this adds put_page()s without corresponding get_page()s. Could we instead macro put_hwpoison_page() as put_page() for the sake of readability? Thanks, Sasha -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/