MCPcopy Create free account
hub / github.com/F-Stack/f-stack / flush_write_batch

Function flush_write_batch

freebsd/contrib/openzfs/module/zfs/dmu_recv.c:2015–2032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2013}
2014
2015noinline static int
2016flush_write_batch(struct receive_writer_arg *rwa)
2017{
2018 if (list_is_empty(&rwa->write_batch))
2019 return (0);
2020 int err = rwa->err;
2021 if (err == 0)
2022 err = flush_write_batch_impl(rwa);
2023 if (err != 0) {
2024 struct receive_record_arg *rrd;
2025 while ((rrd = list_remove_head(&rwa->write_batch)) != NULL) {
2026 abd_free(rrd->abd);
2027 kmem_free(rrd, sizeof (*rrd));
2028 }
2029 }
2030 ASSERT(list_is_empty(&rwa->write_batch));
2031 return (err);
2032}
2033
2034noinline static int
2035receive_process_write_record(struct receive_writer_arg *rwa,

Callers 3

receive_process_recordFunction · 0.85
receive_writer_threadFunction · 0.85

Calls 5

flush_write_batch_implFunction · 0.85
abd_freeFunction · 0.85
list_is_emptyFunction · 0.50
list_remove_headFunction · 0.50
kmem_freeFunction · 0.50

Tested by

no test coverage detected