From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:7576 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731955AbfHHLfK (ORCPT ); Thu, 8 Aug 2019 07:35:10 -0400 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x78BWAHQ094278 for ; Thu, 8 Aug 2019 07:35:08 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u8h315086-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 08 Aug 2019 07:35:07 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Aug 2019 12:35:06 +0100 Date: Thu, 8 Aug 2019 13:34:59 +0200 From: Heiko Carstens Subject: Re: [PATCH 2/2] s390/mm: Use refcount_t for refcount References: <20190808071826.6649-1-hslester96@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190808071826.6649-1-hslester96@gmail.com> Message-Id: <20190808113459.GB4331@osiris> Sender: linux-s390-owner@vger.kernel.org List-ID: To: Chuhong Yuan Cc: Christian Borntraeger , Janosch Frank , David Hildenbrand , Cornelia Huck , Vasily Gorbik , linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, Aug 08, 2019 at 03:18:26PM +0800, Chuhong Yuan wrote: > Reference counters are preferred to use refcount_t instead of > atomic_t. > This is because the implementation of refcount_t can prevent > overflows and detect possible use-after-free. > So convert atomic_t ref counters to refcount_t. > > Signed-off-by: Chuhong Yuan > --- > arch/s390/include/asm/gmap.h | 4 +++- > arch/s390/mm/gmap.c | 10 +++++----- > 2 files changed, 8 insertions(+), 6 deletions(-) Applied, thanks.