/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Official Linux v6.18: include/linux/mmap_lock.h
 * Complete function; source lines 69-72.
 * Body unchanged. Kernel dependencies and configuration are required.
 * Source URL, SHA, commit, and license: provenance.json; GPL-2.0.txt.
 */

static inline void mmap_assert_locked(const struct mm_struct *mm)
{
	rwsem_assert_held(&mm->mmap_lock);
}

