From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gerald Schaefer Subject: Re: [PATCH v10 5/7] s390: add pmd_[dirty|mkclean] for THP Date: Mon, 7 Jul 2014 17:31:43 +0200 Message-ID: <20140707173143.271bbd52@thinkpad> References: <1404694438-10272-1-git-send-email-minchan@kernel.org> <1404694438-10272-6-git-send-email-minchan@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1404694438-10272-6-git-send-email-minchan-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Minchan Kim Cc: Andrew Morton , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Michael Kerrisk , Linux API , Hugh Dickins , Johannes Weiner , Rik van Riel , KOSAKI Motohiro , Mel Gorman , Jason Evans , Zhang Yanfei , "Kirill A. Shutemov" , Martin Schwidefsky , Heiko Carstens , Dominik Dingel , Christian Borntraeger , linux-s390-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-api@vger.kernel.org On Mon, 7 Jul 2014 09:53:56 +0900 Minchan Kim wrote: > MADV_FREE needs pmd_dirty and pmd_mkclean for detecting recent > overwrite of the contents since MADV_FREE syscall is called for > THP page but for s390 pmds only referenced bit is available > because there is no free bit left in the pmd entry for the > software dirty bit so this patch adds dumb pmd_dirty which > returns always true by suggesting by Martin. > > They finally find a solution in future. > http://marc.info/?l=linux-api&m=140440328820808&w=2 > > Cc: Martin Schwidefsky > Cc: Heiko Carstens > Cc: Gerald Schaefer > Cc: Dominik Dingel > Cc: Christian Borntraeger > Cc: linux-s390-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Signed-off-by: Minchan Kim > --- > arch/s390/include/asm/pgtable.h | 12 ++++++++++++ > 1 file changed, 12 insertions(+) Acked-by: Gerald Schaefer