Skip to content
Permalink
Browse files

Make `zil_async_to_sync` visible to platform code.

FreeBSD's zvol platform code uses it.

Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
  • Loading branch information...
mattmacy committed Oct 9, 2019
1 parent 381d91d commit 6c0ac929627eaa9aabc4f8dca2f7d7e15690fdec
Showing with 2 additions and 3 deletions.
  1. +1 −0 include/sys/zil.h
  2. +1 −3 module/zfs/zil.c
@@ -493,6 +493,7 @@ extern itx_t *zil_itx_create(uint64_t txtype, size_t lrsize);
extern void zil_itx_destroy(itx_t *itx);
extern void zil_itx_assign(zilog_t *zilog, itx_t *itx, dmu_tx_t *tx);

extern void zil_async_to_sync(zilog_t *zilog, uint64_t oid);
extern void zil_commit(zilog_t *zilog, uint64_t oid);
extern void zil_commit_impl(zilog_t *zilog, uint64_t oid);

@@ -135,8 +135,6 @@ unsigned long zil_slog_bulk = 768 * 1024;
static kmem_cache_t *zil_lwb_cache;
static kmem_cache_t *zil_zcw_cache;

static void zil_async_to_sync(zilog_t *zilog, uint64_t foid);

#define LWB_EMPTY(lwb) ((BP_GET_LSIZE(&lwb->lwb_blk) - \
sizeof (zil_chain_t)) == (lwb->lwb_sz - lwb->lwb_nused))

@@ -2089,7 +2087,7 @@ zil_get_commit_list(zilog_t *zilog)
/*
* Move the async itxs for a specified object to commit into sync lists.
*/
static void
void
zil_async_to_sync(zilog_t *zilog, uint64_t foid)
{
uint64_t otxg, txg;

0 comments on commit 6c0ac92

Please sign in to comment.
You can’t perform that action at this time.