2003-09-17 20:54:34

by Chen, Kenneth W

[permalink] [raw]
Subject: Hugetlb FS quota problem

We found a problem in hugetlbfs file system quota when using huge page
via mmap. The mmap method in hugetlbfs_file_operation always takes
quota for every mmap even for pages that are already allocated on that
inode. This results in taxing the same hugepage multiple times and
causing mmap to fail on existing file when quota mistakenly runs out.

The following patch against 2.6.0-test5 fix the problem.

<<htlbfs_quota.patch>>


Attachments:
htlbfs_quota.patch (4.92 kB)
htlbfs_quota.patch