Files
scoutfs/kmod/src
Zach Brown 18aee0ebbd scoutfs: fix lost entries in resumed srch compact
Compacting very large srch files can use all of a given operation's
metadata allocator.  When this happens we record the position in the
srch files of the compcation in the pending item.

We could lose entries when this happens because the kway_next callback
would advance the srch file position as it read entries and put them in
the tournament tree leaves, not as it put them in the output file.  We'd
continue from the entries that were next to go in the tournament leaves,
not from what was in the leaves.

This refactors the kway merge callbacks to differentiate between getting
entries at the position and advancing the positions.  We initialize the
tournament leaves by getting entries at the positions and only advance
the position as entries leave the tournament tree and are either stored
in the output srch files or are dropped.

Signed-off-by: Zach Brown <zab@versity.com>
2020-12-03 09:58:35 -08:00
..
2020-08-26 14:39:12 -07:00
2020-11-30 13:35:44 -08:00
2020-11-30 13:35:44 -08:00
2020-10-26 15:19:03 -07:00
2020-10-26 15:19:03 -07:00
2018-04-04 09:15:27 -05:00
2017-12-20 12:21:13 -08:00
2020-11-30 13:35:44 -08:00
2018-04-04 09:15:27 -05:00
2018-04-04 09:15:27 -05:00
2018-01-26 11:59:47 -08:00
2020-10-26 15:19:03 -07:00
2020-10-26 15:19:03 -07:00
2020-01-17 11:21:36 -08:00
2017-08-30 10:38:00 -07:00
2020-11-30 13:35:44 -08:00
2020-10-29 14:15:33 -07:00
2020-11-30 13:35:44 -08:00
2016-02-05 14:12:14 -08:00
2020-11-30 13:35:44 -08:00
2020-11-30 13:35:44 -08:00
2020-11-30 13:35:44 -08:00
2019-08-20 15:52:13 -07:00
2020-11-30 13:35:44 -08:00
2020-11-30 13:35:44 -08:00
2020-11-30 13:35:44 -08:00
2019-05-21 11:33:26 -07:00
2019-05-21 11:33:26 -07:00
2019-08-20 15:52:13 -07:00
2020-10-29 14:15:33 -07:00
2020-10-29 14:15:33 -07:00
2020-11-30 13:35:44 -08:00
2019-04-12 10:54:07 -07:00
2020-10-26 15:19:03 -07:00
2019-08-20 15:52:13 -07:00
2019-06-05 14:30:11 -07:00
2020-11-30 13:35:44 -08:00
2018-07-27 09:50:21 -07:00
2018-07-27 09:50:21 -07:00