Re: [Libhugetlbfs-devel] [PATCH] Fix WARNING: Unable to verify address range

2012-11-08 Thread Eric B Munson
On Thu, 08 Nov 2012, Gerald Schaefer wrote: > This patch fixes a warning about an empty address range that will be issued > when the offset in prepare_segment() is smaller than page_size. In that case, > check_range_empty() would be called with len == 0 (the page_size down-aligned > offset), trigg

[Libhugetlbfs-devel] [PATCH] Fix WARNING: Unable to verify address range

2012-11-08 Thread Gerald Schaefer
This patch fixes a warning about an empty address range that will be issued when the offset in prepare_segment() is smaller than page_size. In that case, check_range_empty() would be called with len == 0 (the page_size down-aligned offset), triggering the warning. This is fixed by checking the down