forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitd70cec8
mm: mmap: merge vma after call_mmap() if possible
The vm_flags may be changed after call_mmap() because drivers may set someflags for their own purpose. As a result, we failed to merge the adjacentvma due to the different vm_flags as userspace can't pass in the same one.Try to merge vma after call_mmap() to fix this issue.Signed-off-by: Hongxiang Lou <louhongxiang@huawei.com>Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>Signed-off-by: Andrew Morton <akpm@linux-foundation.org>Reviewed-by: Andrew Morton <akpm@linux-foundation.org>Link:http://lkml.kernel.org/r/1594954065-23733-1-git-send-email-linmiaohe@huawei.comSigned-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parenteee0793 commitd70cec8
1 file changed
+21
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1690 | 1690 | | |
1691 | 1691 | | |
1692 | 1692 | | |
1693 | | - | |
| 1693 | + | |
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
| |||
1774 | 1774 | | |
1775 | 1775 | | |
1776 | 1776 | | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
1777 | 1796 | | |
1778 | 1797 | | |
1779 | 1798 | | |
| |||
1796 | 1815 | | |
1797 | 1816 | | |
1798 | 1817 | | |
| 1818 | + | |
1799 | 1819 | | |
1800 | 1820 | | |
1801 | 1821 | | |
| |||
0 commit comments
Comments
(0)