Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm, hugetlb: move up the code which check availability of free huge page
In this time we are holding a hugetlb_lock, so hstate values can't be changed. If we don't have any usable free huge page in this time, we don't need to proceed with the processing. So move this code up. Signed-off-by: Joonsoo Kim <[email protected]> Acked-by: Michal Hocko <[email protected]> Reviewed-by: Wanpeng Li <[email protected]> Reviewed-by: Aneesh Kumar K.V <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Acked-by: Hillf Danton <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Mel Gorman <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: David Gibson <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information