@ -757,7 +756,7 @@ static int open_packed_git_1(struct packed_git *p)
@@ -757,7 +756,7 @@ static int open_packed_git_1(struct packed_git *p)
while (pack_max_fds <= pack_open_fds && unuse_one_window(NULL, -1))
; /* nothing */
p->pack_fd = git_open_noatime(p->pack_name, p);
p->pack_fd = git_open_noatime(p->pack_name);
if (p->pack_fd < 0 || fstat(p->pack_fd, &st))
return -1;
pack_open_fds++;
@ -1145,7 +1144,7 @@ int check_sha1_signature(const unsigned char *sha1, void *map, unsigned long siz
@@ -1145,7 +1144,7 @@ int check_sha1_signature(const unsigned char *sha1, void *map, unsigned long siz
return hashcmp(sha1, real_sha1) ? -1 : 0;
}
static int git_open_noatime(const char *name, struct packed_git *p)
static int git_open_noatime(const char *name)
{
static int sha1_file_open_flag = O_NOATIME;
@ -1170,7 +1169,7 @@ static int open_sha1_file(const unsigned char *sha1)
@@ -1170,7 +1169,7 @@ static int open_sha1_file(const unsigned char *sha1)
char *name = sha1_file_name(sha1);
struct alternate_object_database *alt;
fd = git_open_noatime(name, NULL);
fd = git_open_noatime(name);
if (fd >= 0)
return fd;
@ -1179,7 +1178,7 @@ static int open_sha1_file(const unsigned char *sha1)
@@ -1179,7 +1178,7 @@ static int open_sha1_file(const unsigned char *sha1)