mmap locking API: convert mmap_sem comments
[sfrench/cifs-2.6.git] / include / linux / mm_types.h
index ef6d3aface8a29d72ca45a9a32c64551f09c88d5..64ede5f150dc5396c5877d8f1f1fa786a0b89e5d 100644 (file)
@@ -344,7 +344,7 @@ struct vm_area_struct {
         * can only be in the i_mmap tree.  An anonymous MAP_PRIVATE, stack
         * or brk vma (with NULL file) can only be in an anon_vma list.
         */
-       struct list_head anon_vma_chain; /* Serialized by mmap_sem &
+       struct list_head anon_vma_chain; /* Serialized by mmap_lock &
                                          * page_table_lock */
        struct anon_vma *anon_vma;      /* Serialized by page_table_lock */
 
@@ -440,7 +440,7 @@ struct mm_struct {
                spinlock_t page_table_lock; /* Protects page tables and some
                                             * counters
                                             */
-               struct rw_semaphore mmap_sem;
+               struct rw_semaphore mmap_lock;
 
                struct list_head mmlist; /* List of maybe swapped mm's. These
                                          * are globally strung together off