diff options
author | наб <[email protected]> | 2022-01-21 17:07:15 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2022-01-26 11:38:52 -0800 |
commit | 7ada752a934f79d87fb9ef998455f26fd07f59a7 (patch) | |
tree | fadcb89e9710da5b7ad2d5b6f26c94eb1ca96d50 /module/zfs/vdev_cache.c | |
parent | a3fecf4f1059f4afcead0e7a502ffe8babb1e39c (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/vdev_cache.c')
-rw-r--r-- | module/zfs/vdev_cache.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/module/zfs/vdev_cache.c b/module/zfs/vdev_cache.c index b6e680334..a3433311b 100644 --- a/module/zfs/vdev_cache.c +++ b/module/zfs/vdev_cache.c @@ -83,13 +83,13 @@ * it by setting the zfs_vdev_cache_size to zero. Note that Solaris 11 * has made these same changes. */ -static int zfs_vdev_cache_max = 1<<14; /* 16KB */ +static int zfs_vdev_cache_max = 1 << 14; /* 16KB */ static int zfs_vdev_cache_size = 0; static int zfs_vdev_cache_bshift = 16; #define VCBS (1 << zfs_vdev_cache_bshift) /* 64KB */ -static kstat_t *vdc_ksp = NULL; +static kstat_t *vdc_ksp = NULL; typedef struct vdc_stats { kstat_named_t vdc_stat_delegations; @@ -426,7 +426,6 @@ vdev_cache_stat_fini(void) } } -/* BEGIN CSTYLED */ ZFS_MODULE_PARAM(zfs_vdev, zfs_vdev_, cache_max, INT, ZMOD_RW, "Inflate reads small than max"); @@ -435,4 +434,3 @@ ZFS_MODULE_PARAM(zfs_vdev, zfs_vdev_, cache_size, INT, ZMOD_RD, ZFS_MODULE_PARAM(zfs_vdev, zfs_vdev_, cache_bshift, INT, ZMOD_RW, "Shift size to inflate reads too"); -/* END CSTYLED */ |