From: Andrew Morton Date: Mon, 17 Aug 2015 23:49:36 +0000 (+1000) Subject: mm-hugetlb-add-cache-of-descriptors-to-resv_map-for-region_add-fix X-Git-Tag: v4.1.12-92~292^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3f0bd39eb8ed15870799301e808f3b1c587f4d85;p=users%2Fjedix%2Flinux-maple.git mm-hugetlb-add-cache-of-descriptors-to-resv_map-for-region_add-fix Orabug: 21652814 fix typo in comment, use more cols Cc: Mike Kravetz Signed-off-by: Andrew Morton (cherry picked from commit 203a5abc2eb0bcd7f8e5a3742467e845de368df8) Signed-off-by: Mike Kravetz Signed-off-by: Santosh Shilimkar --- diff --git a/mm/hugetlb.c b/mm/hugetlb.c index 709d7ec53d8c..5363a0fdad0e 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -334,15 +334,13 @@ out_locked: * so that the subsequent region_add call will have all the * regions it needs and will not fail. * - * Upon entry, region_chg will also examine the cache of - * region descriptors associated with the map. If there - * not enough descriptors cached, one will be allocated - * for the in progress add operation. + * Upon entry, region_chg will also examine the cache of region descriptors + * associated with the map. If there are not enough descriptors cached, one + * will be allocated for the in progress add operation. * - * Returns the number of huge pages that need to be added - * to the existing reservation map for the range [f, t). - * This number is greater or equal to zero. -ENOMEM is - * returned if a new file_region structure or cache entry + * Returns the number of huge pages that need to be added to the existing + * reservation map for the range [f, t). This number is greater or equal to + * zero. -ENOMEM is returned if a new file_region structure or cache entry * is needed and can not be allocated. */ static long region_chg(struct resv_map *resv, long f, long t)