[Devel] [PATCH RHEL7 COMMIT] ub statd: move struct ub_stat_notify declaration to source

Konstantin Khorenko khorenko at virtuozzo.com
Thu Oct 8 04:52:51 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-229.7.2.vz7.8.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.8.4
------>
commit 332277cedb88c85967deb4b629cf68dbb47555cc
Author: Stanislav Kinsburskiy <skinsbursky at parallels.com>
Date:   Thu Oct 8 15:52:51 2015 +0400

    ub statd: move struct ub_stat_notify declaration to source
    
    It's used only in one file: kernel/bc/statd.c. No need to declare it in
    headers.
    
    Signed-off-by: Stanislav Kinsburskiy <skinsbursky at parallels.com>
---
 include/bc/statd.h | 7 -------
 kernel/bc/statd.c  | 6 ++++++
 2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/include/bc/statd.h b/include/bc/statd.h
index 9dafc5e..377a8c4 100644
--- a/include/bc/statd.h
+++ b/include/bc/statd.h
@@ -60,11 +60,4 @@ typedef struct {
 	ubstatparmf_t	param[0];
 } ubstatfull_t;
 
-#ifdef __KERNEL__
-struct ub_stat_notify {
-	struct list_head	list;
-	struct task_struct	*task;
-	int			signum;
-};
-#endif
 #endif
diff --git a/kernel/bc/statd.c b/kernel/bc/statd.c
index 97602da..f2b984c 100644
--- a/kernel/bc/statd.c
+++ b/kernel/bc/statd.c
@@ -31,6 +31,12 @@ static long ubs_min_interval;
 static ubstattime_t ubs_start_time, ubs_end_time;
 static struct timer_list ubs_timer;
 
+struct ub_stat_notify {
+	struct list_head	list;
+	struct task_struct	*task;
+	int			signum;
+};
+
 static int ubstat_get_list(void __user *buf, long size)
 {
 	int retval;



More information about the Devel mailing list