> -----Original Message----- > From: Jaegeuk Kim [mailto:[email protected]] > Sent: Tuesday, December 22, 2015 3:35 PM > To: Chao Yu > Cc: [email protected]; [email protected]; > [email protected] > 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:[email protected]] > > > Sent: Tuesday, December 22, 2015 11:39 AM > > > To: [email protected]; [email protected]; > > > [email protected] > > > 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 <[email protected]> ------------------------------------------------------------------------------ _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel
