kernel/fork.c: make mm_init_owner static
It's only used in fork.c:mm_init(). Signed-off-by: Vladimir Davydov <vdavydov@parallels.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
4f7d461433
commit
33144e8429
@ -2961,15 +2961,10 @@ static inline void inc_syscw(struct task_struct *tsk)
|
|||||||
|
|
||||||
#ifdef CONFIG_MEMCG
|
#ifdef CONFIG_MEMCG
|
||||||
extern void mm_update_next_owner(struct mm_struct *mm);
|
extern void mm_update_next_owner(struct mm_struct *mm);
|
||||||
extern void mm_init_owner(struct mm_struct *mm, struct task_struct *p);
|
|
||||||
#else
|
#else
|
||||||
static inline void mm_update_next_owner(struct mm_struct *mm)
|
static inline void mm_update_next_owner(struct mm_struct *mm)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_MEMCG */
|
#endif /* CONFIG_MEMCG */
|
||||||
|
|
||||||
static inline unsigned long task_rlimit(const struct task_struct *tsk,
|
static inline unsigned long task_rlimit(const struct task_struct *tsk,
|
||||||
|
@ -535,6 +535,13 @@ static void mm_init_aio(struct mm_struct *mm)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_MEMCG
|
||||||
|
mm->owner = p;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p)
|
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p)
|
||||||
{
|
{
|
||||||
mm->mmap = NULL;
|
mm->mmap = NULL;
|
||||||
@ -1139,13 +1146,6 @@ static void rt_mutex_init_task(struct task_struct *p)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_MEMCG
|
|
||||||
void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
|
|
||||||
{
|
|
||||||
mm->owner = p;
|
|
||||||
}
|
|
||||||
#endif /* CONFIG_MEMCG */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize POSIX timer handling for a single task.
|
* Initialize POSIX timer handling for a single task.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user