Hugetlb FS quota problem

From: Chen, Kenneth W
Date: Wed Sep 17 2003 - 15:56:11 EST


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>>

Attachment: htlbfs_quota.patch
Description: htlbfs_quota.patch