]> git.ipfire.org Git - thirdparty/git.git/commit
sha1_file.c: Round the mmap offset to half the window size.
authorAlexandre Julliard <julliard@winehq.org>
Wed, 14 Feb 2007 17:11:40 +0000 (18:11 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 14 Feb 2007 23:22:08 +0000 (15:22 -0800)
commit78a28df9388cccb1ec85aa5642808f0d3392155f
tree6d34e910bb9eaf23e18d7e5089fb1c0c322fdcc2
parent5faaf24634a4d3a630bd3655cc85fa96f8bc1903
sha1_file.c: Round the mmap offset to half the window size.

This ensures that a given area is mapped at most twice, and greatly
reduces the virtual address space usage.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c