| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/3] mm: add context argument to shrinker callback |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Thu, 15 Jul 2010 14:09:46 -0400 |
| Cc: | xfs@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, linux-mm@xxxxxxxxx |
| In-reply-to: | <1279194418-16119-2-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1279194418-16119-1-git-send-email-david@xxxxxxxxxxxxx> <1279194418-16119-2-git-send-email-david@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.20 (2009-08-17) |
On Thu, Jul 15, 2010 at 09:46:56PM +1000, Dave Chinner wrote: > From: Dave Chinner <dchinner@xxxxxxxxxx> > > The current shrinker implementation requires the registered callback > to have global state to work from. This makes it difficult to shrink > caches that are not global (e.g. per-filesystem caches). Pass the shrinker > structure to the callback so that users can embed the shrinker structure > in the context the shrinker needs to operate on and get back to it in the > callback via container_of(). > > Signed-off-by: Dave Chinner <dchinner@xxxxxxxxxx> Looks good, Reviewed-by: Christoph Hellwig <hch@xxxxxx> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 3/5] xfs: fix xfs_trans_add_item() lockdep warnings, Alex Elder |
|---|---|
| Next by Date: | Re: [PATCH 4/5] xfs: use GFP_NOFS for page cache allocation, Alex Elder |
| Previous by Thread: | [PATCH 1/3] mm: add context argument to shrinker callback, Dave Chinner |
| Next by Thread: | Re: [PATCH 1/3] mm: add context argument to shrinker callback, Alex Elder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |