Used in the next patch to attach an existing mm descriptor to a restarting process. Signed-off-by: Oren Laadan <orenl@xxxxxxxxxxxxxxx> Acked-by: Serge Hallyn <serue@xxxxxxxxxx> --- fs/exec.c | 2 +- include/linux/mm.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index 052a961..17f5222 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -722,7 +722,7 @@ int kernel_read(struct file *file, unsigned long offset, EXPORT_SYMBOL(kernel_read); -static int exec_mmap(struct mm_struct *mm) +int exec_mmap(struct mm_struct *mm) { struct task_struct *tsk; struct mm_struct * old_mm, *active_mm; diff --git a/include/linux/mm.h b/include/linux/mm.h index 3a40968..c8e8972 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1180,6 +1180,9 @@ extern int do_munmap(struct mm_struct *, unsigned long, size_t); extern unsigned long do_brk(unsigned long, unsigned long); +/* fs/exec.c */ +extern int exec_mmap(struct mm_struct *mm); + /* filemap.c */ extern unsigned long page_unuse(struct page *); extern void truncate_inode_pages(struct address_space *, loff_t); -- 1.5.4.3 _______________________________________________ Containers mailing list Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers