]> git.baikalelectronics.ru Git - kernel.git/commit
mm/mmap.c: use helper function allow_write_access() in __remove_shared_vm_struct()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 13 Oct 2020 23:54:14 +0000 (16:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 14 Oct 2020 01:38:32 +0000 (18:38 -0700)
commit6d553b8d90f2301dfa88d5f2c9c558e9fe315e37
treecb71ae1bbb528ecbf098e65aea4094b6123e3eab
parentb61ac94706795a5c41f91565ad4a482f0364fdcc
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>
mm/mmap.c