projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92be775
)
mm: struct shrinker: make flags of unsigned type
author
Kirill Tkhai
<
[email protected]
>
Wed, 22 Aug 2018 04:51:57 +0000
(21:51 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 22 Aug 2018 17:52:43 +0000
(10:52 -0700)
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 <
[email protected]
>
Acked-by: Michal Hocko <
[email protected]
>
Cc: Vladimir Davydov <
[email protected]
>
Cc: Tetsuo Handa <
[email protected]
>
Cc: Chris Wilson <
[email protected]
>
Cc: Greg Kroah-Hartman <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/shrinker.h
patch
|
blob
|
history
diff --git
a/include/linux/shrinker.h
b/include/linux/shrinker.h
index d58aaaed34a43c0689a9a4f0ca4e79b6bdf89afe..9443cafd19696a65919514abb140a522ea6312b6 100644
(file)
--- 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;