Skip to content

Commit

Permalink
Make zfs_immediate_write_sz a module paramater
Browse files Browse the repository at this point in the history
zfs_immediate_write_sz variable is a tunable, but lacks proper
module_param() instrumentation.

Issue openzfs#1032
  • Loading branch information
imp committed Oct 10, 2012
1 parent c8f2591 commit 94d4e4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions module/zfs/zfs_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,3 +675,8 @@ zfs_log_acl(zilog_t *zilog, dmu_tx_t *tx, znode_t *zp,
itx->itx_sync = (zp->z_sync_cnt != 0);
zil_itx_assign(zilog, itx, tx);
}

#if defined(_KERNEL) && defined(HAVE_SPL)
module_param(zfs_immediate_write_sz, long, 0644);
MODULE_PARM_DESC(zfs_immediate_write_sz, "Largest data block to write to zil");
#endif

0 comments on commit 94d4e4b

Please sign in to comment.