Date: Fri, 17 Mar 2017 11:43:14 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315444 - stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs Message-ID: <201703171143.v2HBhELI005652@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Fri Mar 17 11:43:14 2017 New Revision: 315444 URL: https://svnweb.freebsd.org/changeset/base/315444 Log: MFC r308099: Add sysctls for zfs_immediate_write_sz and zvol_immediate_write_sz. Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_log.c stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_log.c ============================================================================== --- stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_log.c Fri Mar 17 10:30:06 2017 (r315443) +++ stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_log.c Fri Mar 17 11:43:14 2017 (r315444) @@ -454,6 +454,11 @@ zfs_log_rename(zilog_t *zilog, dmu_tx_t * Handles TX_WRITE transactions. */ ssize_t zfs_immediate_write_sz = 32768; +#ifdef _KERNEL +SYSCTL_DECL(_vfs_zfs); +SYSCTL_LONG(_vfs_zfs, OID_AUTO, immediate_write_sz, CTLFLAG_RWTUN, + &zfs_immediate_write_sz, 0, "Minimal size for indirect log write"); +#endif void zfs_log_write(zilog_t *zilog, dmu_tx_t *tx, int txtype, Modified: stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c ============================================================================== --- stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Fri Mar 17 10:30:06 2017 (r315443) +++ stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zvol.c Fri Mar 17 11:43:14 2017 (r315444) @@ -1385,6 +1385,10 @@ zvol_get_data(void *arg, lr_write_t *lr, * Otherwise we will later flush the data out via dmu_sync(). */ ssize_t zvol_immediate_write_sz = 32768; +#ifdef _KERNEL +SYSCTL_LONG(_vfs_zfs_vol, OID_AUTO, immediate_write_sz, CTLFLAG_RWTUN, + &zvol_immediate_write_sz, 0, "Minimal size for indirect log write"); +#endif static void zvol_log_write(zvol_state_t *zv, dmu_tx_t *tx, offset_t off, ssize_t resid,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703171143.v2HBhELI005652>