[Devel] [PATCH RHEL7 COMMIT] ub: fix typo: s/ub_dirty_radio/ub_dirty_ratio

Konstantin Khorenko khorenko at virtuozzo.com
Thu Sep 3 04:26:09 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-229.7.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-229.7.2.vz7.6.6
------>
commit c275d9111b90b883f127040dc8ab501fb268841e
Author: Vladimir Davydov <vdavydov at parallels.com>
Date:   Thu Sep 3 15:26:08 2015 +0400

    ub: fix typo: s/ub_dirty_radio/ub_dirty_ratio
    
    Signed-off-by: Vladimir Davydov <vdavydov at parallels.com>
---
 include/bc/io_acct.h    | 2 +-
 kernel/bc/beancounter.c | 4 ++--
 kernel/bc/io_acct.c     | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/bc/io_acct.h b/include/bc/io_acct.h
index b3bcfd1..5b51853 100644
--- a/include/bc/io_acct.h
+++ b/include/bc/io_acct.h
@@ -17,7 +17,7 @@
 #include <bc/beancounter.h>
 #include <linux/virtinfo.h>
 
-extern int ub_dirty_radio;
+extern int ub_dirty_ratio;
 extern int ub_dirty_background_ratio;
 
 /*
diff --git a/kernel/bc/beancounter.c b/kernel/bc/beancounter.c
index d0ab65a..f9e7fea 100644
--- a/kernel/bc/beancounter.c
+++ b/kernel/bc/beancounter.c
@@ -1153,8 +1153,8 @@ static ctl_table ub_sysctl_table[] = {
 #ifdef CONFIG_BC_IO_ACCOUNTING
 	{
 		.procname	= "dirty_ratio",
-		.data		= &ub_dirty_radio,
-		.maxlen		= sizeof ub_dirty_radio,
+		.data		= &ub_dirty_ratio,
+		.maxlen		= sizeof ub_dirty_ratio,
 		.mode		= 0644,
 		.proc_handler	= &proc_dointvec,
 	},
diff --git a/kernel/bc/io_acct.c b/kernel/bc/io_acct.c
index db3926d..109004f 100644
--- a/kernel/bc/io_acct.c
+++ b/kernel/bc/io_acct.c
@@ -28,7 +28,7 @@
 /*
  * starts writeback at this dirty memory percentage from physpages limit
  */
-int ub_dirty_radio = 50;
+int ub_dirty_ratio = 50;
 int ub_dirty_background_ratio = 30;
 
 /* under write lock mapping->tree_lock */
@@ -131,7 +131,7 @@ int ub_dirty_limits(unsigned long *pbackground,
 	int dirty_ratio;
 	unsigned long available_memory;
 
-	dirty_ratio = ub_dirty_radio;
+	dirty_ratio = ub_dirty_ratio;
 	if (!dirty_ratio)
 		return 0;
 



More information about the Devel mailing list