On Tue, 11 Nov 2008, Adam Litke wrote: > On Thu, 2008-11-06 at 17:43 +0000, Eric B Munson wrote: > > + env = getenv("HUGETLB_MINIMAL_COPY"); > > + if (__hugetlb_opts.min_copy && env && (strcasecmp(env, "no") == 0)) { > > + DEBUG("HUGETLB_MINIMAL_COPY=%s, disabling filesz copy " > > + "optimization\n", env); > > + __hugetlb_opts.min_copy = 0; > > + } > > else > __hugetlb_opts.min_copy = 1; > ? > Otherwise, wont min_copy always be zero?
No, in the beginning of hugetlbfs_setup_env min_copy is initialised to 1 just as the static variable was.
signature.asc
Description: Digital signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel