Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2075517imm; Thu, 20 Sep 2018 07:25:53 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ3KLx3DlAzSUTHtdeji5Crx8D2rOycM7+QMKnSy8nuGRy5XMPi31OyKKEhSYJhTJT/mf/2 X-Received: by 2002:a62:57dc:: with SMTP id i89-v6mr41609335pfj.45.1537453553686; Thu, 20 Sep 2018 07:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537453553; cv=none; d=google.com; s=arc-20160816; b=QQlU4npv9TJ9A0deLcYkh6376FS4JUNyy+F7n7L2sZrX3+0b3XfKgHpMrr/2ml6ZkO wg4AHDu4SAttIgpj3GnveWhM0akP0nT+VBv4+CuZx0CCGJZQN518/HlGcKQg+6vu9hij b2nv3m5dKiv4W8CGOrVgP53MR9qOkXcbOrajNfan8t/cJsVlNwbbPg8rJdG8SE+6KT70 +DHiGGT7JP6lJi6icug2D/E0KLkF29NvxEnYzrGglQ8uRc3DdMUiVFMpQKg7+m/5ecM3 0xdwHEhrfQIHC8427Jm6vS1jRVYibVZaxrn8dJBhopsk8hV2TM3O++0T3E03VkGEVqoK Jl7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:to:subject:dkim-signature; bh=nHKiJk8rpfpezRHqmd2UI47n0rjXWHA6Ul5QpzGxKLk=; b=DB0PUw8W6ej5tlSgyWwKlyyl3L6YAwIxNtgbiMW0fai8rV+vPmetBbPZTvPqha7+7n f2rOIjr3rKouvkmpRfK0fa2zP+iQJTTj7CXjHGvEGUDQ/MGPiXff/pNUe6EE2RcwbUIc iI9YwKoLZN5qaeYj26+EmC82mCNnkUfyVp6iegyD5WSkysTv1kDdj9ZP1ydheLQrbpW+ QLjwD8MTyyYE5YiNnuTPE1uT7erd2OvjObhc4evSkVKzjKNuBA44QdnugW8YbUDeZz+6 hcE4mhJF3yHcT+eQ0gd6H3w3AMlJAP70ZuCrVrimOQUwN+2KoPRJDlG3MHmGElvCl1eA i4vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=F+ZxiDYm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b137-v6si5659030pga.90.2018.09.20.07.25.38; Thu, 20 Sep 2018 07:25:53 -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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=F+ZxiDYm; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732959AbeITUIy (ORCPT + 99 others); Thu, 20 Sep 2018 16:08:54 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:52478 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731135AbeITUIx (ORCPT ); Thu, 20 Sep 2018 16:08:53 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8KEIp05142883; Thu, 20 Sep 2018 14:24:56 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : to : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=nHKiJk8rpfpezRHqmd2UI47n0rjXWHA6Ul5QpzGxKLk=; b=F+ZxiDYmQKOSJobDd3wNUIXkhfKKCrO1r64t2F0S0kYHECjLjsixoJZiU2wIJ0Uxc5Rm cS6tHa8NZVsSWT8lsnduB4Rs88Wc+VVyQJO6tR0EQ/tCvBndpsT6DXEMkjRrXwXhxEk9 pVJueiw6lxXQYkW+OyxQmNKOGrQCihd3lvGGnSuaXoNyxVS0PeQMiZI2mAbekpsdxO+p 4wxS0JRSgHH4X59v1v7IoYMOjE1a/0Yt0BmOgXWTVtXhELXHapjHYcbmdQLuF73PUh56 hAvEgMD3MfspkgXosdsW+BEAchS0Z9h2hVNvhJrct/q0ErQCiHFeqdruGyGTnweU/4UD Pw== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2mgt1q33q1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Sep 2018 14:24:56 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8KEOs2S000931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 20 Sep 2018 14:24:55 GMT Received: from abhmp0010.oracle.com (abhmp0010.oracle.com [141.146.116.16]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8KEOspi026180; Thu, 20 Sep 2018 14:24:54 GMT Received: from [192.168.1.93] (/99.156.91.244) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 20 Sep 2018 07:24:54 -0700 Subject: Re: [PATCH] jfs: remove redundant dquot_initialize() in jfs_evict_inode() To: Chao Yu , Chao Yu , "open list:JFS FILESYSTEM" , open list References: <20180917071221.13187-1-yuchao0@huawei.com> From: Dave Kleikamp Openpgp: preference=signencrypt Message-ID: Date: Thu, 20 Sep 2018 09:24:53 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9021 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809200142 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/20/18 9:18 AM, Chao Yu wrote: > Ping, > > Any comments? Sorry for putting it off. It looks good to me. I'll push it upstream. Thanks, Dave > > On 2018/9/17 15:12, Chao Yu wrote: >> We don't need to call dquot_initialize() twice in jfs_evict_inode(), >> remove one of them for cleanup. >> >> Signed-off-by: Chao Yu >> --- >> fs/jfs/inode.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/fs/jfs/inode.c b/fs/jfs/inode.c >> index 054cc761b426..805ae9e8944a 100644 >> --- a/fs/jfs/inode.c >> +++ b/fs/jfs/inode.c >> @@ -166,7 +166,6 @@ void jfs_evict_inode(struct inode *inode) >> /* >> * Free the inode from the quota allocation. >> */ >> - dquot_initialize(inode); >> dquot_free_inode(inode); >> } >> } else { >>