Henry Dong
b4d3ec1582
ANDROID: mm: support __GFP_NORETRY in __alloc_contig_verify_gfp_mask
...
Currently, __alloc_contig_verify_gfp_mask() rejects __GFP_NORETRY because
it is not in the allowed action_mask. This causes cma_alloc() calls that
pass __GFP_NORETRY to fail immediately during mask verification in
alloc_contig_range().
Support __GFP_NORETRY by adding it to the allowed action_mask and
cc_action_mask. Furthermore, adjust the construction of gfp_cc_mask
so that if the caller explicitly requested __GFP_NORETRY, we respect
it and do not force __GFP_RETRY_MAYFAIL, avoiding conflicting retry
directives for the underlying migration/compaction.
This allows cma_alloc() with __GFP_NORETRY to fail quickly when the
range cannot be allocated, rather than retrying heavily or failing
immediately due to invalid GFP flags.
Bug: 519847597
Test: Local build and flash verification
Change-Id: I1bee0b838ac957d08a24358d100d20b8ef7babeb
Signed-off-by: Minchan Kim <minchan@google.com >
Signed-off-by: Henry Dong <donghenry@google.com >
2026-08-11 21:33:30 -07:00
..
2026-06-03 16:25:51 -07:00
2026-06-16 08:44:43 +05:30
2026-06-12 11:25:12 +02:00
2026-02-21 17:09:51 -08:00
2026-01-31 14:22:40 -08:00
2026-04-18 23:24:27 -07:00
2026-01-31 14:22:36 -08:00
2026-04-05 13:53:32 -07:00
2026-01-21 09:38:16 -08:00
2026-05-28 20:50:33 -07:00
2026-06-03 16:25:49 -07:00
2026-06-04 21:59:52 +00:00
2026-04-18 00:10:46 -07:00
2026-04-05 13:53:11 -07:00
2025-11-20 13:43:57 -08:00
2026-02-21 17:09:51 -08:00
2026-01-26 20:02:26 -08:00
2026-04-05 13:53:34 -07:00
2026-04-05 13:52:53 -07:00
2026-06-04 10:16:50 +02:00
2026-02-06 15:47:16 -08:00
2026-02-06 15:47:16 -08:00
2026-04-05 13:53:07 -07:00
2026-01-31 14:22:38 -08:00
2026-04-26 23:38:57 +02:00
2026-06-15 03:30:45 +05:30
2026-02-21 17:09:51 -08:00
2026-04-27 05:54:24 -07:00
2026-01-26 20:02:28 -08:00
2025-11-20 13:43:57 -08:00
2026-01-20 19:24:50 -08:00
2025-11-20 13:43:57 -08:00
2026-05-31 21:50:24 -07:00
2026-05-28 20:50:34 -07:00
2025-09-21 14:22:21 -07:00
2026-05-26 11:02:01 +02:00
2026-04-19 14:45:37 -07:00
2026-04-05 13:53:13 -07:00
2026-07-28 09:09:00 -07:00
2026-04-18 00:10:48 -07:00
2026-04-05 13:53:47 -07:00
2026-04-18 00:10:48 -07:00
2026-04-05 13:53:40 -07:00
2026-06-03 16:25:51 -07:00
2026-04-05 13:53:41 -07:00
2026-04-20 01:09:35 -07:00
2025-11-16 17:27:58 -08:00
2026-05-25 20:48:14 +03:00
2026-04-18 00:10:47 -07:00
2026-04-18 00:10:47 -07:00
2026-05-28 20:50:33 -07:00
2026-05-04 14:03:16 +00:00
2026-04-24 22:53:04 +00:00
2026-06-01 09:19:58 -07:00
2026-05-13 17:40:03 -07:00
2026-05-28 20:50:34 -07:00
2026-04-05 13:53:33 -07:00
2026-06-01 09:13:09 -07:00
2026-04-19 14:45:37 -07:00
2026-06-03 18:20:47 +02:00
2026-04-18 23:24:27 -07:00
2026-01-09 11:53:51 +02:00
2026-05-21 19:06:13 -07:00
2026-04-18 00:10:45 -07:00
2026-06-03 16:25:52 -07:00
2026-04-18 00:10:44 -07:00
2026-06-02 16:29:16 +01:00
2026-01-31 14:22:51 -08:00
2026-05-19 17:38:50 +00:00
2026-04-05 13:53:05 -07:00
2026-04-15 12:59:16 -07:00
2025-09-13 16:55:07 -07:00
2026-04-18 00:10:55 -07:00
2026-04-05 13:53:40 -07:00
2026-04-05 13:53:41 -07:00
2026-04-05 13:53:28 -07:00
2026-02-21 09:58:22 -08:00
2026-05-19 17:38:50 +00:00
2026-08-11 21:33:30 -07:00
2026-03-28 11:39:00 -07:00
2026-04-05 13:53:02 -07:00
2026-05-29 05:34:24 -06:00
2026-01-31 14:22:42 -08:00
2026-04-21 03:08:00 -07:00
2026-04-05 13:53:17 -07:00
2026-03-13 00:07:47 +01:00
2026-04-05 13:53:03 -07:00
2026-06-15 03:30:45 +05:30
2026-04-17 22:51:45 -07:00
2025-09-21 14:22:04 -07:00
2025-11-16 17:27:54 -08:00
2026-05-22 21:34:39 +00:00
2026-04-17 22:51:45 -07:00
2025-11-16 17:27:52 -08:00
2026-02-12 11:32:37 -08:00
2026-05-21 19:06:12 -07:00
2026-06-04 10:10:49 +02:00
2026-02-21 01:02:28 -08:00
2026-07-01 22:43:48 +00:00
2026-04-08 06:52:47 +10:00
2026-01-26 20:02:25 -08:00
2026-04-18 00:10:44 -07:00
2026-06-16 08:44:43 +05:30
2026-07-28 09:09:00 -07:00
2026-07-28 09:09:00 -07:00
2026-04-05 13:53:34 -07:00
2026-04-18 00:10:52 -07:00
2026-04-05 13:53:37 -07:00
2026-04-05 13:52:59 -07:00
2026-05-22 21:34:39 +00:00
2026-04-05 13:52:59 -07:00
2026-05-19 17:38:50 +00:00
2026-07-21 20:51:17 -07:00
2026-04-19 14:45:37 -07:00
2025-11-13 11:01:08 +01:00
2026-05-31 21:50:26 -07:00
2026-05-26 23:01:06 +00:00
2026-04-05 13:53:40 -07:00
2025-10-02 18:18:33 -07:00
2026-02-12 15:42:53 -08:00
2026-04-27 05:54:24 -07:00
2026-04-05 13:53:44 -07:00
2026-05-21 19:06:13 -07:00
2026-02-21 17:09:51 -08:00
2026-07-01 12:48:23 -07:00
2026-04-19 08:01:17 -07:00
2026-04-18 00:10:47 -07:00
2025-09-21 14:21:59 -07:00
2026-04-05 13:53:34 -07:00
2026-04-18 00:10:50 -07:00