staging-lustre-libcfs-cleanup-linux-memh.patch removed from -mm tree
Subject: [merged] staging-lustre-libcfs-cleanup-linux-memh.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 13 Sep 2013 14:16:39 -0700
The patch titled
Subject: staging/lustre/libcfs: cleanup linux-mem.h
has been removed from the -mm tree. Its filename was
staging-lustre-libcfs-cleanup-linux-memh.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Peng Tao <[email protected]>
Subject: staging/lustre/libcfs: cleanup linux-mem.h
remove shrinker related wrappers.
Signed-off-by Peng Tao <[email protected]>
Signed-off-by Andreas Dilger <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Dave Chinner <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/staging/lustre/include/linux/libcfs/linux/linux-mem.h | 38 ---------- 1 file changed, 38 deletions(-)
drivers/staging/lustre/include/linux/libcfs/linux/linux-mem.h renamed from drivers/staging/lustre/include/linux/libcfs/linux/linux-mem.h~staging-lustre-libcfs-cleanup-linux-memh +0 -37
@@ -79,42 +79,4 @@ do { __oldfs = get_fs(); set_fs(get_ds());} while(0)#define MMSPACE_CLOSE set_fs(__oldfs) -/* -* Shrinker -*/ - -# define SHRINKER_ARGS (sc, nr_to_scan, gfp_mask) \ - struct shrinker *shrinker, \ - struct shrink_control *sc -# define shrink_param (sc, var) ((sc)->var) - -typedef int (*shrinker_t )(SHRINKER_ARGS (sc ,nr_to_scan ,gfp_mask )); - -static inline -struct shrinker *set_shrinker (int seek,shrinker_t func) -{ -struct shrinker *s; - - s =kmalloc (sizeof (*s),GFP_KERNEL ); -if (s ==NULL ) -return (NULL ); - - s->shrink = func; - s->seeks = seek; - -register_shrinker (s); - -return s; -} - -static inline -void remove_shrinker (struct shrinker *shrinker) -{ -if (shrinker ==NULL ) -return ; - -unregister_shrinker (shrinker); -kfree (shrinker); -}