]> git.baikalelectronics.ru Git - kernel.git/commit
mm: use helper function put_write_access()
authorMiaohe Lin <linmiaohe@huawei.com>
Fri, 16 Oct 2020 03:10:08 +0000 (20:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:19 +0000 (11:11 -0700)
commitbba60c312d586f159261cda8c3092bbddbeb92d5
tree5ae619c217e9dcfd5e14fafdc05388921b23f70a
parentc7916cf6b61a946314e8e9b5dbab67e662359b0e
mm: use helper function put_write_access()

In commit 1da177e4c3f4 ("Linux-2.6.12-rc2"), the helper put_write_access()
came with the atomic_dec operation of the i_writecount field.  But it
forgot to use this helper in __vma_link_file() and dup_mmap().

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: https://lkml.kernel.org/r/20200924115235.5111-1-linmiaohe@huawei.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/fork.c
mm/mmap.c