Add support for mmgrab() function in the LinuxKPI.
MFC after: 1 week Submitted by: Johannes Lundberg <johalun0@gmail.com> Sponsored by: Mellanox Technologies
This commit is contained in:
parent
2060ca654e
commit
13a27c3b43
@ -62,6 +62,12 @@ mmput(struct mm_struct *mm)
|
||||
mmdrop(mm);
|
||||
}
|
||||
|
||||
static inline void
|
||||
mmgrab(struct mm_struct *mm)
|
||||
{
|
||||
atomic_inc(&mm->mm_count);
|
||||
}
|
||||
|
||||
extern struct mm_struct *linux_get_task_mm(struct task_struct *);
|
||||
#define get_task_mm(task) linux_get_task_mm(task)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user