diff options
author | Mike Kravetz <mike.kravetz@oracle.com> | 2015-04-16 01:13:39 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-16 01:35:17 +0200 |
commit | 1c5ecae3a93fa1ab51a784d77e9c9ed54e67c65f (patch) | |
tree | df351d81d1fc493470d87cda2044d592e06195a9 /fs | |
parent | hugetlbfs: add minimum size tracking fields to subpool structure (diff) | |
download | linux-1c5ecae3a93fa1ab51a784d77e9c9ed54e67c65f.tar.xz linux-1c5ecae3a93fa1ab51a784d77e9c9ed54e67c65f.zip |
hugetlbfs: add minimum size accounting to subpools
The same routines that perform subpool maximum size accounting
hugepage_subpool_get/put_pages() are modified to also perform minimum size
accounting. When a delta value is passed to these routines, calculate how
global reservations must be adjusted to maintain the subpool minimum size.
The routines now return this global reserve count adjustment. This
global reserve count adjustment is then passed to the global accounting
routine hugetlb_acct_memory().
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Aneesh Kumar <aneesh.kumar@linux.vnet.ibm.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions