Miaohe Lin
6501fe5f16
mm/hugetlb: remove redundant reservation check condition in alloc_huge_page()
...
vma_resv_map(vma) checks if a reserve map is associated with the vma.
The routine vma_needs_reservation() will check vma_resv_map(vma) and
return 1 if no reserv map is present. map_chg is set to the return
value of vma_needs_reservation(). Therefore, !vma_resv_map(vma) is
redundant in the expression:
map_chg || avoid_reserve || !vma_resv_map(vma);
Remove the redundant check.
[Thanks Mike Kravetz for reshaping this commit message!]
Link: https://lkml.kernel.org/r/20210301104726.45159-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-05-05 11:27:20 -07:00
..
2021-04-30 11:20:42 -07:00
2021-03-25 09:22:55 -07:00
2021-02-26 09:41:01 -08:00
2019-09-04 07:42:01 -04:00
2019-07-12 12:24:03 -07:00
2020-07-10 13:54:00 -07:00
2021-02-26 09:41:00 -08:00
2020-09-01 09:19:43 +02:00
2021-02-24 13:38:34 -08:00
2017-11-02 11:10:55 +01:00
2021-04-30 11:20:40 -07:00
2021-02-24 13:38:27 -08:00
2021-04-30 11:20:39 -07:00
2021-02-26 09:41:02 -08:00
2020-10-13 18:38:29 -07:00
2019-07-12 11:05:43 -07:00
2021-05-05 11:27:19 -07:00
2020-08-14 19:56:56 -07:00
2020-12-15 12:13:38 -08:00
2020-12-15 12:13:38 -08:00
2021-04-30 11:20:37 -07:00
2021-03-25 09:22:55 -07:00
2020-08-12 10:58:02 -07:00
2021-03-13 11:27:31 -08:00
2021-03-25 09:22:55 -07:00
2021-05-05 11:27:20 -07:00
2020-10-16 11:11:16 -07:00
2020-12-15 12:13:39 -08:00
2021-04-30 11:20:42 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2021-04-30 11:20:40 -07:00
2021-04-30 11:20:43 -07:00
2020-12-15 12:13:46 -08:00
2021-02-26 09:40:59 -08:00
2021-04-30 11:20:36 -07:00
2020-12-15 12:13:47 -08:00
2021-02-24 13:38:30 -08:00
2020-08-12 10:57:59 -07:00
2021-03-13 11:27:30 -08:00
2021-04-30 11:20:39 -07:00
2021-04-16 16:10:37 -07:00
2021-02-22 13:01:23 -08:00
2021-04-30 11:20:38 -07:00
2019-09-24 15:54:08 -07:00
2021-03-10 10:56:46 +00:00
2021-04-30 11:20:44 -07:00
2021-04-30 11:20:39 -07:00
2021-04-30 11:20:43 -07:00
2021-04-30 11:20:41 -07:00
2021-04-30 11:20:37 -07:00
2017-11-02 11:10:55 +01:00
2021-04-30 11:20:42 -07:00
2021-01-24 14:27:16 +01:00
2021-02-26 09:41:01 -08:00
2021-04-30 11:20:42 -07:00
2020-12-15 12:13:41 -08:00
2021-04-30 11:20:39 -07:00
2021-04-16 16:10:36 -07:00
2021-03-25 09:22:55 -07:00
2020-12-15 14:48:04 -08:00
2021-02-24 13:38:30 -08:00
2021-04-30 11:20:39 -07:00
2021-04-30 11:20:37 -07:00
2021-01-28 14:10:31 +00:00
2021-04-16 16:10:36 -07:00
2021-04-30 11:20:43 -07:00
2021-04-30 11:20:38 -07:00
2020-12-15 22:46:19 -08:00
2020-12-15 14:48:03 -08:00
2021-03-02 17:25:46 -07:00
2020-12-15 12:13:45 -08:00
2021-04-30 11:20:36 -07:00
2021-04-30 11:20:36 -07:00
2021-02-24 13:38:30 -08:00
2020-06-09 09:39:13 -07:00
2020-12-15 12:13:41 -08:00
2021-04-30 11:20:37 -07:00
2020-06-09 09:39:14 -07:00
2021-04-09 13:58:38 +00:00
2020-08-12 10:57:55 -07:00
2021-04-09 13:58:38 +00:00
2021-04-30 11:20:40 -07:00
2021-04-09 13:58:38 +00:00
2020-08-07 11:33:26 -07:00
2021-02-24 13:38:30 -08:00
2021-01-12 18:12:54 -08:00
2021-04-16 16:10:37 -07:00
2021-04-23 10:14:29 +01:00
2021-02-26 09:41:01 -08:00
2020-08-21 09:52:53 -07:00
2021-04-19 16:03:48 +02:00
2021-04-16 16:10:36 -07:00
2020-08-07 11:33:29 -07:00
2021-04-30 11:20:36 -07:00
2021-04-30 11:20:41 -07:00
2021-04-30 11:20:41 -07:00
2021-03-08 14:18:46 -08:00
2021-04-30 11:20:41 -07:00
2020-08-07 11:33:27 -07:00
2021-04-30 11:20:39 -07:00
2020-06-03 20:09:48 -07:00
2021-02-24 13:38:28 -08:00
2021-05-05 11:27:19 -07:00
2021-02-26 09:40:59 -08:00
2021-03-02 17:25:46 -07:00
2021-05-05 11:27:19 -07:00
2020-08-12 10:57:58 -07:00
2021-05-05 11:27:20 -07:00
2021-04-30 11:20:37 -07:00
2020-06-10 19:14:18 -07:00
2021-04-30 11:20:40 -07:00
2020-04-02 09:35:31 -07:00
2021-02-24 13:38:34 -08:00
2021-02-26 09:41:00 -08:00
2021-05-05 11:27:19 -07:00
2021-03-25 09:22:55 -07:00
2021-02-26 09:41:01 -08:00
2021-02-26 09:41:01 -08:00
2021-02-26 09:41:01 -08:00
2021-02-26 09:41:01 -08:00