Miaohe Lin cb48841fbf mm/mmap.c: use helper function allow_write_access() in __remove_shared_vm_struct()
In commit 1da177e4c3f4 ("Linux-2.6.12-rc2"), the helper allow_write_access
came with the atomic_inc operation of the i_writecount field in the func
__remove_shared_vm_struct().  But it forgot to use this helper function.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200921115814.39680-1-linmiaohe@huawei.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-10-13 18:38:32 -07:00
..
2020-08-09 14:10:26 -07:00
2020-08-12 10:57:57 -07:00
2020-10-13 18:38:29 -07:00
2020-10-13 18:38:31 -07:00
2020-10-13 12:12:44 -07:00
2020-09-04 12:46:07 +01:00
2020-09-24 11:03:40 -06:00
2020-06-08 11:05:55 -07:00
2020-09-04 09:31:54 -07:00
2020-06-04 19:06:24 -07:00
2020-08-12 10:57:58 -07:00