All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: Vladimir Riabchun <vladimir.riabchun@virtuozzo.com>
Subject: [Devel] [PATCH VZ10 v6 1/9] ve/ve.{h, c}: Farewell to spaces as indents
Date: Wed, 19 Aug 2026 09:07:38 +0000	[thread overview]
Message-ID: <d0686407b6023069b4e0100e59368a1fb0da1d6a.1787129389.git.vladimir.riabchun@virtuozzo.com> (raw)
In-Reply-To: <cover.1787129389.git.vladimir.riabchun@virtuozzo.com>

Fix formatting while here.

Signed-off-by: Vladimir Riabchun <vladimir.riabchun@virtuozzo.com>
---
 include/linux/ve.h |  8 ++++----
 kernel/ve/ve.c     | 48 +++++++++++++++++++++++-----------------------
 2 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/include/linux/ve.h b/include/linux/ve.h
index cba827260d07..3facbd1759df 100644
--- a/include/linux/ve.h
+++ b/include/linux/ve.h
@@ -63,7 +63,7 @@ struct ve_struct {
 	void			*log_state;
 #define VE_LOG_BUF_LEN		4096
 
-	struct kstat_lat_pcpu_struct    sched_lat_ve;
+	struct kstat_lat_pcpu_struct	sched_lat_ve;
 	int			odirect_enable;
 
 	int			fsync_enable;
@@ -100,8 +100,8 @@ struct ve_struct {
 	struct kthread_worker	*kthreadd_worker;
 	struct task_struct	*kthreadd_task;
 
-	atomic_t                umh_running_helpers;
-	struct wait_queue_head  umh_helpers_waitq;
+	atomic_t		umh_running_helpers;
+	struct wait_queue_head	umh_helpers_waitq;
 	struct kthread_worker	umh_worker;
 	struct task_struct	*umh_task;
 
@@ -122,7 +122,7 @@ struct ve_struct {
 struct ve_devmnt {
 	struct list_head	link;
 
-	dev_t                   dev;
+	dev_t			dev;
 	char			*allowed_options;
 	char			*hidden_options; /* balloon_ino, etc. */
 };
diff --git a/kernel/ve/ve.c b/kernel/ve/ve.c
index 73d1c3b4873e..dffb35da22bd 100644
--- a/kernel/ve/ve.c
+++ b/kernel/ve/ve.c
@@ -83,8 +83,8 @@ struct ve_struct ve0 = {
 	.nd_neigh_nr		= ATOMIC_INIT(0),
 	.mnt_nr			= ATOMIC_INIT(0),
 	.meminfo_val		= VE_MEMINFO_SYSTEM,
-	.umh_running_helpers    = ATOMIC_INIT(0),
-	.umh_helpers_waitq      = __WAIT_QUEUE_HEAD_INITIALIZER(ve0.umh_helpers_waitq),
+	.umh_running_helpers	= ATOMIC_INIT(0),
+	.umh_helpers_waitq	= __WAIT_QUEUE_HEAD_INITIALIZER(ve0.umh_helpers_waitq),
 	.vdso_64		= (struct vdso_image*)&vdso_image_64,
 	.vdso_32		= (struct vdso_image*)&vdso_image_32,
 };
@@ -286,7 +286,7 @@ EXPORT_SYMBOL(is_ve_init_net);
 
 int nr_threads_ve(struct ve_struct *ve)
 {
-        return cgroup_task_count(ve->css.cgroup);
+	return cgroup_task_count(ve->css.cgroup);
 }
 EXPORT_SYMBOL(nr_threads_ve);
 
@@ -327,8 +327,8 @@ static void ve_drop_context(struct ve_struct *ve)
 	ve_nsproxy = rcu_dereference_protected(ve->ve_nsproxy, lockdep_is_held(&ve->op_sem));
 
 	/* Allows to dereference init_cred and init_task if ve_nsproxy is set */
-        rcu_assign_pointer(ve->ve_nsproxy, NULL);
-        synchronize_rcu();
+	rcu_assign_pointer(ve->ve_nsproxy, NULL);
+	synchronize_rcu();
 	put_nsproxy(ve_nsproxy);
 
 	put_cred(ve->init_cred);
@@ -886,23 +886,23 @@ static int ve_state_show(struct seq_file *sf, void *v)
 	struct ve_struct *ve = css_to_ve(css);
 
 	down_read(&ve->op_sem);
-        switch (ve->state) {
-                case VE_STATE_STARTING:
-                        seq_puts(sf, "STARTING");
-                        break;
-                case VE_STATE_RUNNING:
-                        seq_puts(sf, "RUNNING");
-                        break;
-                case VE_STATE_STOPPING:
-                        seq_puts(sf, "STOPPING");
-                        break;
-                case VE_STATE_STOPPED:
-                case VE_STATE_DEAD:
-                        seq_puts(sf, "STOPPED");
-                        break;
-                default:
-                        seq_puts(sf, "UNKNOWN");
-        }
+	switch (ve->state) {
+	case VE_STATE_STARTING:
+		seq_puts(sf, "STARTING");
+		break;
+	case VE_STATE_RUNNING:
+		seq_puts(sf, "RUNNING");
+		break;
+	case VE_STATE_STOPPING:
+		seq_puts(sf, "STOPPING");
+		break;
+	case VE_STATE_STOPPED:
+	case VE_STATE_DEAD:
+		seq_puts(sf, "STOPPED");
+		break;
+	default:
+		seq_puts(sf, "UNKNOWN");
+	}
 	seq_putc(sf, '\n');
 	up_read(&ve->op_sem);
 
@@ -914,7 +914,7 @@ static ssize_t ve_state_write(struct kernfs_open_file *of, char *buf,
 
 {
 	struct cgroup_subsys_state *css = of_css(of);
-        struct ve_struct *ve = css_to_ve(css);
+	struct ve_struct *ve = css_to_ve(css);
 	int ret = -EINVAL;
 
 	if (!strcmp(buf, "START")) {
@@ -1343,7 +1343,7 @@ static int ve_parse_mount_options(const char *ptr, const char *endp,
 			goto next;
 		}
 
-	        options = kmalloc(options_size, GFP_KERNEL);
+		options = kmalloc(options_size, GFP_KERNEL);
 		if (!options)
 			return -ENOMEM;
 
-- 
2.47.1


  reply	other threads:[~2026-08-19  9:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-19  9:07 [Devel] [PATCH VZ10 v6 0/9] Add per-VE failcount support Vladimir Riabchun
2026-08-19  9:07 ` Vladimir Riabchun [this message]
2026-08-19  9:07 ` [Devel] [PATCH VZ10 v6 2/9] ve/namespace: Fix UAF in alloc_mnt_ns Vladimir Riabchun
2026-08-19  9:07 ` [Devel] [PATCH VZ10 v6 3/9] ve/fs: Rework per-ve mount count Vladimir Riabchun
2026-08-19 13:16   ` Vasileios Almpanis
2026-08-19  9:07 ` [Devel] [PATCH VZ10 v6 4/9] selftests/ve: Update ve_ns_owner_test Vladimir Riabchun
2026-08-19 13:16   ` Vasileios Almpanis
2026-08-19  9:07 ` [Devel] [PATCH VZ10 v6 5/9] ve: Move from global VE mounts limit to per-VE limit Vladimir Riabchun
2026-08-19  9:07 ` [Devel] [PATCH VZ10 v6 6/9] ve/ve.c: Generate VE resource accessors using macros Vladimir Riabchun
2026-08-19  9:07 ` [Devel] [PATCH VZ10 v6 7/9] ve: Introduce per-VE failcount Vladimir Riabchun
2026-08-19 13:16   ` Vasileios Almpanis
2026-08-19  9:07 ` [Devel] [PATCH VZ10 v6 8/9] selftests/ve: Add more helpers Vladimir Riabchun
2026-08-19  9:07 ` [Devel] [PATCH VZ10 v6 9/9] selftests/ve: Add mount accounting selftest Vladimir Riabchun
2026-08-19 13:16   ` Vasileios Almpanis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d0686407b6023069b4e0100e59368a1fb0da1d6a.1787129389.git.vladimir.riabchun@virtuozzo.com \
    --to=vladimir.riabchun@virtuozzo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.