On Wed, May 09, 2007 at 06:04:09PM -0500, Andrew Hastings wrote:
> test_utils: fix test_addr_huge for anon pages
> 
> If the address being tested resides in an anon region that immediately
> follows a hugetlb region, test_addr_huge erroneously reports the address
> as huge.
> 
> Extract from /proc/self/maps:
> 02000000-02200000 rwxp 00000000 00:12 34122                              
> /libhugetlbfs/libhugetlbfs.tmp.3HOwRf (deleted)
> 02200000-02221000 rw-p 02200000 00:00 0 
> 
> Test case: test_addr_huge(0x2200010) returns 1.

Good catch.  We'll need a Signed-off-by line in-order to apply this,
but otherwise looks good.

-- 
David Gibson                    | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
                                | _way_ _around_!
http://www.ozlabs.org/~dgibson

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to