Revert "mm: align larger anonymous mappings on THP boundaries"
This reverts commit efa7df3e3b.
It causes testing failures due to a lack of entropy in the system, so
revert it for now. This has been reported to upstream, hopefully it
gets resolved soon there.
Bug: 254683164
Link: https://lore.kernel.org/all/CAJuCfpHXLdQy1a2B6xN2d7quTYwg2OoZseYPZTRpU0eHHKD-sQ@mail.gmail.com/
Cc: Suren Baghdasaryan <surenb@google.com>
Change-Id: I36bb4981fe7782a63ab90406dead59fea6d2ae42
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -1830,9 +1830,6 @@ get_unmapped_area(struct file *file, unsigned long addr, unsigned long len,
|
||||
*/
|
||||
pgoff = 0;
|
||||
get_area = shmem_get_unmapped_area;
|
||||
} else if (IS_ENABLED(CONFIG_TRANSPARENT_HUGEPAGE)) {
|
||||
/* Ensures that larger anonymous mappings are THP aligned. */
|
||||
get_area = thp_get_unmapped_area;
|
||||
}
|
||||
|
||||
addr = get_area(file, addr, len, pgoff, flags);
|
||||
|
||||
Reference in New Issue
Block a user