summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-09-04 12:30:21 -0700
committerJunio C Hamano <gitster@pobox.com>2013-09-04 12:30:21 -0700
commit04fbba0119a1e5aeece9a6c4ee70dad8fbd07b0f (patch)
tree01b503fb6517938537cc485b5a8fac11a11f0faa /git-compat-util.h
parent9a7eaad65ff5f6bf5c7fda427bcc2b94f6ada598 (diff)
parent7c3ecb32541d767518bf78633603f94fefdac8cf (diff)
downloadgit-04fbba0119a1e5aeece9a6c4ee70dad8fbd07b0f.tar.gz
Merge branch 'bc/unuse-packfile'
Handle memory pressure and file descriptor pressure separately when deciding to release pack windows to honor resource limits. * bc/unuse-packfile: Don't close pack fd when free'ing pack windows sha1_file: introduce close_one_pack() to close packs on fd pressure
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index d60e28dffa..8752317fe9 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -524,7 +524,7 @@ int inet_pton(int af, const char *src, void *dst);
const char *inet_ntop(int af, const void *src, char *dst, size_t size);
#endif
-extern void release_pack_memory(size_t, int);
+extern void release_pack_memory(size_t);
typedef void (*try_to_free_t)(size_t);
extern try_to_free_t set_try_to_free_routine(try_to_free_t);