From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755244Ab1HWI6s (ORCPT ); Tue, 23 Aug 2011 04:58:48 -0400 Received: from ipmail07.adl2.internode.on.net ([150.101.137.131]:43849 "EHLO ipmail07.adl2.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754958Ab1HWI4z (ORCPT ); Tue, 23 Aug 2011 04:56:55 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlsEAN5pU055LIxDgWdsb2JhbABBmQ2PGhUBARYmJYFAAQEFViMQCBgxOQMbGb9JhkgEmCaLfw From: Dave Chinner To: linux-kernel@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, khlebnikov@openvz.org Subject: [PATCH 06/13] shrinker: remove old API now it is unused Date: Tue, 23 Aug 2011 18:56:19 +1000 Message-Id: <1314089786-20535-7-git-send-email-david@fromorbit.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1314089786-20535-1-git-send-email-david@fromorbit.com> References: <1314089786-20535-1-git-send-email-david@fromorbit.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Chinner Signed-off-by: Dave Chinner --- include/linux/shrinker.h | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h index 50f213f..ab6c572 100644 --- a/include/linux/shrinker.h +++ b/include/linux/shrinker.h @@ -20,11 +20,6 @@ struct shrink_control { /* * A callback you can register to apply pressure to ageable caches. * - * @shrink() should look through the least-recently-used 'nr_to_scan' entries - * and attempt to free them up. It should return the number of objects which - * remain in the cache. If it returns -1, it means it cannot do any scanning at - * this time (eg. there is a risk of deadlock). - * * @count_objects should return the number of freeable items in the cache. If * there are no objects to free or the number of freeable items cannot be * determined, it should return 0. No deadlock checks should be done during the @@ -40,7 +35,6 @@ struct shrink_control { * @scan_objects will be made from the current reclaim context. */ struct shrinker { - int (*shrink)(struct shrinker *, struct shrink_control *sc); long (*count_objects)(struct shrinker *, struct shrink_control *sc); long (*scan_objects)(struct shrinker *, struct shrink_control *sc); -- 1.7.5.4