Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754051AbbLVIJd (ORCPT ); Tue, 22 Dec 2015 03:09:33 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:59868 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752039AbbLVIJb (ORCPT ); Tue, 22 Dec 2015 03:09:31 -0500 X-AuditID: cbfee61a-f79266d000003652-98-567905392b0d From: Chao Yu To: "'Jaegeuk Kim'" Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net References: <1450755521-20015-1-git-send-email-jaegeuk@kernel.org> <00be01d13c79$a3db6970$eb923c50$@samsung.com> <20151222073453.GA20735@jaegeuk.local> In-reply-to: <20151222073453.GA20735@jaegeuk.local> Subject: RE: [f2fs-dev] [PATCH 1/2] f2fs: use atomic variable for total_extent_tree Date: Tue, 22 Dec 2015 16:08:46 +0800 Message-id: <00bf01d13c90$14e0f7a0$3ea2e6e0$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: AQK1cPONvsTjEMskIgHpFaLccC8I+AJ+KmjpA2eiDNuc3wwxYA== Content-language: zh-cn X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsVy+t9jAV1L1sowgwWf9S2erJ/FbHFpkbvF nr0nWSwu75rD5sDisWlVJ5vH7gWfmTw+b5ILYI7isklJzcksSy3St0vgypjR2ctUcJuzYtXz LewNjI0cXYycHBICJhJbnu1hh7DFJC7cW8/WxcjFISSwlFHiwLXP7BDOK0aJ4xffsIJUsQmo SCzv+M8EYosIqEn07psCZjMLZEpM6H8BNklIYDZQw0QbEJtTwFhi9t1dQDUcHMICoRJvl9qC hFkEVCXmbPvCDGLzClhKPNoykR3CFpT4MfkeC8RILYn1O49DjZeX2LzmLTPEoQoSO86+ZoQ4 wUniz5XpzBA14hIbj9ximcAoNAvJqFlIRs1CMmoWkpYFjCyrGCVSC5ILipPScw3zUsv1ihNz i0vz0vWS83M3MYLD/5nUDsaDu9wPMQpwMCrx8E5YUBEmxJpYVlyZe4hRgoNZSYT3EmNlmBBv SmJlVWpRfnxRaU5q8SFGaQ4WJXHe2kuRYUIC6YklqdmpqQWpRTBZJg5OqQbGExmx21xOrFc7 EcK3z2yLUJfWFyNnPt+Xgi/Oij655yLurPVLc3KeY9D/xS4q2XvbdtrrVj9wm9MZ320UcDLK Y9fpT/P/cjz9tWZO8qHHuzd1nCmZNKvEJjNZ3X5T/PQyPaW5Ev49t4Mevylys+FbqsjDd4ot +FGF7ofvPLmMIXebVz7+vHebEktxRqKhFnNRcSIA2tce23sCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1455 Lines: 38 > -----Original Message----- > From: Jaegeuk Kim [mailto:jaegeuk@kernel.org] > Sent: Tuesday, December 22, 2015 3:35 PM > To: Chao Yu > Cc: linux-kernel@vger.kernel.org; linux-fsdevel@vger.kernel.org; > linux-f2fs-devel@lists.sourceforge.net > Subject: Re: [f2fs-dev] [PATCH 1/2] f2fs: use atomic variable for total_extent_tree > > On Tue, Dec 22, 2015 at 01:28:09PM +0800, Chao Yu wrote: > > Hi Jaegeuk, > > > > > -----Original Message----- > > > From: Jaegeuk Kim [mailto:jaegeuk@kernel.org] > > > Sent: Tuesday, December 22, 2015 11:39 AM > > > To: linux-kernel@vger.kernel.org; linux-fsdevel@vger.kernel.org; > > > linux-f2fs-devel@lists.sourceforge.net > > > Cc: Jaegeuk Kim > > > Subject: [f2fs-dev] [PATCH 1/2] f2fs: use atomic variable for total_extent_tree > > > > > > It would be better to use atomic variable for total_extent_tree. > > > > total_extent_tree was protected by extent_tree_lock semaphore, so intention here > > is to make related calculation in available_free_memory or update_general_status > > more accurate, right? > > Moreover, another major thing is to specify it is atomic along with other extent > counts. Right, :) Please add: Reviewed-by: Chao Yu -- 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/