[Devel] [PATCH RHEL7 COMMIT] bc: Drop redundant put_beancounter in ubstat_get_list

Konstantin Khorenko khorenko at odin.com
Tue Apr 28 07:45:13 PDT 2015


The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-123.1.2.el7.ovz.4.8
------>
commit f44d00cdfbdff0c850a8c8e59a4e537e47cca69b
Author: Cyrill Gorcunov <gorcunov at odin.com>
Date:   Tue Apr 28 18:45:12 2015 +0400

    bc: Drop redundant put_beancounter in ubstat_get_list
    
    sys_ubstat() is currently disabled, but still let's remove
    redundant put.
    
    Signed-off-by: Cyrill Gorcunov <gorcunov at odin.com>
    Acked-by: Vladimir Davydov <vdavydov at parallels.com>
---
 kernel/bc/statd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/kernel/bc/statd.c b/kernel/bc/statd.c
index 559f5ab..25aab55 100644
--- a/kernel/bc/statd.c
+++ b/kernel/bc/statd.c
@@ -85,7 +85,6 @@ static int ubstat_get_list(void __user *buf, long size)
 	}
 	rcu_read_unlock();
 
-	put_beancounter(ubp);
 	size = min_t(long, (ptr - page) * sizeof(*ptr), size);
 	if (size > 0 && copy_to_user(buf, page, size)) {
 		retval = -EFAULT;



More information about the Devel mailing list