]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/mmap.c: use mmap_assert_write_locked() instead of open coding it
authorRolf Eike Beer <eb@emlix.com>
Thu, 14 Apr 2022 06:07:05 +0000 (23:07 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:07:05 +0000 (23:07 -0700)
commitbe8249fae5e77590af957fda23a95ad6a60874d9
treee9ccf096495af1dd26a00ca22739d49fa3d65f4a
parent6a5a993e4e47ab609fd2e3d8d7f0c6e15a09bd29
mm/mmap.c: use mmap_assert_write_locked() instead of open coding it

In case the lock is actually not held at this point.

Link: https://lkml.kernel.org/r/5827758.TJ1SttVevJ@mobilepool36.emlix.com
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c