From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem Bityutskiy Subject: Re: [PATCH v6 15/31] fs: convert fs shrinkers to new scan/count API Date: Mon, 13 May 2013 10:43:26 +0300 Message-ID: <1368431006.5360.14.camel@sauron.fi.intel.com> References: <1368382432-25462-1-git-send-email-glommer@openvz.org> <1368382432-25462-16-git-send-email-glommer@openvz.org> <1368425530.3208.13.camel@sauron.fi.intel.com> <51909610.1010801@parallels.com> Reply-To: dedekind1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Glauber Costa , linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andrew Morton , Greg Thelen , kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org, Michal Hocko , Johannes Weiner , linux-fsdevel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Dave Chinner , Dave Chinner , Steven Whitehouse , Adrian Hunter , Jan Kara To: Glauber Costa Return-path: In-Reply-To: <51909610.1010801-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-fsdevel.vger.kernel.org On Mon, 2013-05-13 at 11:28 +0400, Glauber Costa wrote: > On 05/13/2013 10:12 AM, Artem Bityutskiy wrote: > > On Sun, 2013-05-12 at 22:13 +0400, Glauber Costa wrote: > >> From: Dave Chinner > >> > >> Convert the filesystem shrinkers to use the new API, and standardise > >> some of the behaviours of the shrinkers at the same time. For > >> example, nr_to_scan means the number of objects to scan, not the > >> number of objects to free. > >> > >> I refactored the CIFS idmap shrinker a little - it really needs to > >> be broken up into a shrinker per tree and keep an item count with > >> the tree root so that we don't need to walk the tree every time the > >> shrinker needs to count the number of objects in the tree (i.e. > >> all the time under memory pressure). > > > > UBIFS part looks OK. > > > Great. Could I add your acked or reviewed by tag ? Acked-by: Artem Bityutskiy -- Best Regards, Artem Bityutskiy