X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/blobdiff_plain/7f0bf1cb30e4c9cb751903ae1e7b235760bcfd00..963ca80882dea2131e78563fa59e3e0e7c70c195:/drop-cache.diff diff --git a/drop-cache.diff b/drop-cache.diff index 14fd1b0..82d01ff 100644 --- a/drop-cache.diff +++ b/drop-cache.diff @@ -56,7 +56,7 @@ You can get the latest edition of the patch from cheers tobi -Changes: +Changes: 2007-04-23 @@ -182,7 +182,7 @@ diff --git a/options.c b/options.c diff --git a/receiver.c b/receiver.c --- a/receiver.c +++ b/receiver.c -@@ -62,6 +62,10 @@ static int phase = 0, redoing = 0; +@@ -63,6 +63,10 @@ static flist_ndx_list batch_redo_list; /* We're either updating the basis file or an identical copy: */ static int updating_basis_or_equiv; @@ -365,12 +365,12 @@ diff --git a/util.c b/util.c + fadv_fd_init_func(); + fadv_close_buffer_size += pos - fadv_fd_pos[fd]; + fadv_close_ring[fadv_close_ring_head] = newfd; -+ fadv_close_ring_head = (fadv_close_ring_head + 1) % fadv_max_fd; ++ fadv_close_ring_head = (fadv_close_ring_head + 1) % fadv_max_fd; + fadv_close_ring_size ++; + if (fadv_close_ring_size == fadv_max_fd || fadv_close_buffer_size > 1024*1024 ){ + /* it seems fastest to drop things 'in groups' */ + fadv_close_all(); -+ } ++ } + } + return close(fd); +}