mm/mmap.c: use mmap_assert_write_locked() instead of open coding it
authorRolf Eike Beer <eb@emlix.com>
Fri, 29 Apr 2022 06:16:11 +0000 (23:16 -0700)
committerakpm <akpm@linux-foundation.org>
Fri, 29 Apr 2022 06:16:11 +0000 (23:16 -0700)
commit325bca1fe0b1bb9f535e69bb9ec48d4a6e0ca3ce
treea5998e128bc2e4b6f728bacd060edf4b7c08a608
parent241ec63a9a0fbb39292ea1dd2d07f8dabedfe3df
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