From: Kirill Tkhai Date: Wed, 22 Aug 2018 04:51:57 +0000 (-0700) Subject: mm: struct shrinker: make flags of unsigned type X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e50ef89b0f58a2cb0e7d496a97b851e0dced62a6;p=openwrt%2Fstaging%2Fblogic.git mm: struct shrinker: make flags of unsigned type Currently, there are two flags only, so unsigned is more then enough. Also, move int seeks to keep these fields together. Link: http://lkml.kernel.org/r/153199748720.21131.6476256940113102483.stgit@localhost.localdomain Signed-off-by: Kirill Tkhai Acked-by: Michal Hocko Cc: Vladimir Davydov Cc: Tetsuo Handa Cc: Chris Wilson Cc: Greg Kroah-Hartman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h index d58aaaed34a4..9443cafd1969 100644 --- a/include/linux/shrinker.h +++ b/include/linux/shrinker.h @@ -63,9 +63,9 @@ struct shrinker { unsigned long (*scan_objects)(struct shrinker *, struct shrink_control *sc); - int seeks; /* seeks to recreate an obj */ long batch; /* reclaim batch size, 0 = default */ - unsigned long flags; + int seeks; /* seeks to recreate an obj */ + unsigned flags; /* These are for internal use */ struct list_head list;