aboutsummaryrefslogtreecommitdiffstats
path: root/module/zfs/dbuf.c
diff options
context:
space:
mode:
authorнаб <[email protected]>2022-01-21 17:07:15 +0100
committerBrian Behlendorf <[email protected]>2022-01-26 11:38:52 -0800
commit7ada752a934f79d87fb9ef998455f26fd07f59a7 (patch)
treefadcb89e9710da5b7ad2d5b6f26c94eb1ca96d50 /module/zfs/dbuf.c
parenta3fecf4f1059f4afcead0e7a502ffe8babb1e39c (diff)
Clean up CSTYLEDs
69 CSTYLED BEGINs remain, appx. 30 of which can be removed if cstyle(1) had a useful policy regarding CALL(ARG1, ARG2, ARG3); above 2 lines. As it stands, it spits out *both* sysctl_os.c: 385: continuation line should be indented by 4 spaces sysctl_os.c: 385: indent by spaces instead of tabs which is very cool Another >10 could be fixed by removing "ulong" &al. handling. I don't foresee anyone actually using it intentionally (does it even exist in modern headers? why did it in the first place?). Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12993
Diffstat (limited to 'module/zfs/dbuf.c')
-rw-r--r--module/zfs/dbuf.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c
index 96dcb2564..076b2d09c 100644
--- a/module/zfs/dbuf.c
+++ b/module/zfs/dbuf.c
@@ -822,7 +822,7 @@ dbuf_evict_thread(void *unused)
/*
* Wake up the dbuf eviction thread if the dbuf cache is at its max size.
* If the dbuf cache is at its high water mark, then evict a dbuf from the
- * dbuf cache using the callers context.
+ * dbuf cache using the caller's context.
*/
static void
dbuf_evict_notify(uint64_t size)
@@ -5096,25 +5096,20 @@ EXPORT_SYMBOL(dmu_buf_set_user_ie);
EXPORT_SYMBOL(dmu_buf_get_user);
EXPORT_SYMBOL(dmu_buf_get_blkptr);
-/* BEGIN CSTYLED */
ZFS_MODULE_PARAM(zfs_dbuf_cache, dbuf_cache_, max_bytes, ULONG, ZMOD_RW,
"Maximum size in bytes of the dbuf cache.");
ZFS_MODULE_PARAM(zfs_dbuf_cache, dbuf_cache_, hiwater_pct, UINT, ZMOD_RW,
- "Percentage over dbuf_cache_max_bytes when dbufs must be evicted "
- "directly.");
+ "Percentage over dbuf_cache_max_bytes for direct dbuf eviction.");
ZFS_MODULE_PARAM(zfs_dbuf_cache, dbuf_cache_, lowater_pct, UINT, ZMOD_RW,
- "Percentage below dbuf_cache_max_bytes when the evict thread stops "
- "evicting dbufs.");
+ "Percentage below dbuf_cache_max_bytes when dbuf eviction stops.");
ZFS_MODULE_PARAM(zfs_dbuf, dbuf_, metadata_cache_max_bytes, ULONG, ZMOD_RW,
- "Maximum size in bytes of the dbuf metadata cache.");
+ "Maximum size in bytes of dbuf metadata cache.");
ZFS_MODULE_PARAM(zfs_dbuf, dbuf_, cache_shift, INT, ZMOD_RW,
- "Set the size of the dbuf cache to a log2 fraction of arc size.");
+ "Set size of dbuf cache to log2 fraction of arc size.");
ZFS_MODULE_PARAM(zfs_dbuf, dbuf_, metadata_cache_shift, INT, ZMOD_RW,
- "Set the size of the dbuf metadata cache to a log2 fraction of arc "
- "size.");
-/* END CSTYLED */
+ "Set size of dbuf metadata cache to log2 fraction of arc size.");