mm: convert i_mmap_mutex to rwsem
[linux-2.6-block.git] / mm / mremap.c
index 426b448d64479facef691b9b872beff9e04e8fda..84aa36f9f30886358d048aa3240eae36b9e72d0e 100644 (file)
@@ -99,7 +99,7 @@ static void move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd,
        spinlock_t *old_ptl, *new_ptl;
 
        /*
-        * When need_rmap_locks is true, we take the i_mmap_mutex and anon_vma
+        * When need_rmap_locks is true, we take the i_mmap_rwsem and anon_vma
         * locks to ensure that rmap will always observe either the old or the
         * new ptes. This is the easiest way to avoid races with
         * truncate_pagecache(), page migration, etc...