[Devel] [PATCH rh7 5/5] ub: fix typo: s/ub_dirty_radio/ub_dirty_ratio
Vladimir Davydov
vdavydov at parallels.com
Mon Aug 31 02:17:40 PDT 2015
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 b3bcfd1de609..5b51853e5b5f 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 01726636a776..b1f666486dd8 100644
--- a/kernel/bc/beancounter.c
+++ b/kernel/bc/beancounter.c
@@ -1182,8 +1182,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 db3926d2827f..109004fa18a4 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;
--
2.1.4
More information about the Devel
mailing list