OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 1/3] nitpick: make simple functions inline
[PATCH 1/3] nitpick: make simple functions inline [message #44481] Sun, 11 December 2011 14:45 Go to previous message
Glauber Costa is currently offline  Glauber Costa
Messages: 916
Registered: October 2011
Senior Member
Those are quite simple bit-testing functions that are
only used within this file. Not reason for them not to
be inline.

Signed-off-by: Glauber Costa <glommer@parallels.com>
---
kernel/cgroup.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index d9d5648..e4b9d3c 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -241,12 +241,12 @@ static int cgroup_is_releasable(const struct cgroup *cgrp)
return (cgrp->flags & bits) == bits;
}

-static int notify_on_release(const struct cgroup *cgrp)
+static inline int notify_on_release(const struct cgroup *cgrp)
{
return test_bit(CGRP_NOTIFY_ON_RELEASE, &cgrp->flags);
}

-static int clone_children(const struct cgroup *cgrp)
+static inline int clone_children(const struct cgroup *cgrp)
{
return test_bit(CGRP_CLONE_CHILDREN, &cgrp->flags);
}
--
1.7.6.4
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: [GIT PULL 0/3] perf/core fixes and improvements
Next Topic: [PATCH 0/3] Simple cleanups for cgroups
Goto Forum:
  


Current Time: Mon Jul 07 03:48:45 GMT 2025

Total time taken to generate the page: 0.05332 seconds