On Thu, 2007-02-01 at 18:24 -0800, Nishanth Aravamudan wrote:
> diff --git a/elflink.c b/elflink.c
> index 5a57358..a8d5d4a 100644
> --- a/elflink.c
> +++ b/elflink.c
> @@ -186,8 +186,8 @@ static char share_path[PATH_MAX+1];
>  #define MAX_HTLB_SEGS        2
> 
>  struct seg_info {
> -     void *vaddr;
> -     unsigned long filesz, memsz;
> +     void *vaddr, *extra_vaddr;
> +     unsigned long filesz, memsz, extrasz;

As of now, the extra_copy window abuts the filesz portion of the
segment.  Therefore, we only really need to store extrasz.  The
pagecache dropping code can then construct a for loop like the
following:

for (p = vaddr; p < (vaddr + filesz + extrasz); p += HPAGE_SIZE) ...

-- 
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libhugetlbfs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to