mm, oom: pass an oom order of -1 when triggered by sysrq
The force_kill member of struct oom_control isn't needed if an order of -1 is used instead. This is the same as order == -1 in struct compact_control which requires full memory compaction. This patch introduces no functional change. Signed-off-by: David Rientjes <rientjes@google.com> Cc: Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> Cc: Michal Hocko <mhocko@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
6e0fc46dc2
commit
54e9e29132
@@ -17,7 +17,6 @@ struct oom_control {
|
||||
nodemask_t *nodemask;
|
||||
gfp_t gfp_mask;
|
||||
int order;
|
||||
bool force_kill;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user