mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
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 <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12993
This commit is contained in:
@@ -63,9 +63,9 @@ struct consumer_vdev_elem {
|
||||
};
|
||||
|
||||
SLIST_HEAD(consumer_priv_t, consumer_vdev_elem);
|
||||
/* BEGIN CSTYLED */
|
||||
_Static_assert(sizeof (((struct g_consumer *)NULL)->private)
|
||||
== sizeof (struct consumer_priv_t*),
|
||||
_Static_assert(
|
||||
sizeof (((struct g_consumer *)NULL)->private) ==
|
||||
sizeof (struct consumer_priv_t *),
|
||||
"consumer_priv_t* can't be stored in g_consumer.private");
|
||||
|
||||
DECLARE_GEOM_CLASS(zfs_vdev_class, zfs_vdev);
|
||||
@@ -74,12 +74,11 @@ SYSCTL_DECL(_vfs_zfs_vdev);
|
||||
/* Don't send BIO_FLUSH. */
|
||||
static int vdev_geom_bio_flush_disable;
|
||||
SYSCTL_INT(_vfs_zfs_vdev, OID_AUTO, bio_flush_disable, CTLFLAG_RWTUN,
|
||||
&vdev_geom_bio_flush_disable, 0, "Disable BIO_FLUSH");
|
||||
&vdev_geom_bio_flush_disable, 0, "Disable BIO_FLUSH");
|
||||
/* Don't send BIO_DELETE. */
|
||||
static int vdev_geom_bio_delete_disable;
|
||||
SYSCTL_INT(_vfs_zfs_vdev, OID_AUTO, bio_delete_disable, CTLFLAG_RWTUN,
|
||||
&vdev_geom_bio_delete_disable, 0, "Disable BIO_DELETE");
|
||||
/* END CSTYLED */
|
||||
&vdev_geom_bio_delete_disable, 0, "Disable BIO_DELETE");
|
||||
|
||||
/* Declare local functions */
|
||||
static void vdev_geom_detach(struct g_consumer *cp, boolean_t open_for_read);
|
||||
|
||||
Reference in New Issue
Block a user