diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-11-27 13:41:11 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-11-27 13:41:11 +0100 |
commit | 3fb42daaf11c4be8e0626b733916f3a7b65bcfae (patch) | |
tree | d40ab1904047d2db03c9f6e9b538e01d62415646 /mm/memory.c | |
parent | efdbe3c3edb6c8c98a8be863f60916780a5375c1 (diff) | |
parent | 06a691e64b11323a735db3c3bd909d3c0712698f (diff) |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'mm/memory.c')
-rw-r--r-- | mm/memory.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/memory.c b/mm/memory.c index deb679c31f2a..c387430f06c3 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -3015,9 +3015,9 @@ static int do_cow_fault(struct mm_struct *mm, struct vm_area_struct *vma, } else { /* * The fault handler has no page to lock, so it holds - * i_mmap_lock for write to protect against truncate. + * i_mmap_lock for read to protect against truncate. */ - i_mmap_unlock_write(vma->vm_file->f_mapping); + i_mmap_unlock_read(vma->vm_file->f_mapping); } goto uncharge_out; } @@ -3031,9 +3031,9 @@ static int do_cow_fault(struct mm_struct *mm, struct vm_area_struct *vma, } else { /* * The fault handler has no page to lock, so it holds - * i_mmap_lock for write to protect against truncate. + * i_mmap_lock for read to protect against truncate. */ - i_mmap_unlock_write(vma->vm_file->f_mapping); + i_mmap_unlock_read(vma->vm_file->f_mapping); } return ret; uncharge_out: |