diff options
author | Jianjun Kong <jianjun@zeuux.org> | 2009-09-17 22:26:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-18 12:48:52 -0400 |
commit | 27f5de7963f46388932472b660f2f9a86ab58454 (patch) | |
tree | 83bd98f83819ae9012ada5f077e59fcb18319769 /mm/mmap.c | |
parent | 8f1ecc9fbc5b223e4f5d5bb8bcd6f5672c4bc4b6 (diff) |
mm: Fix problem of parameter in note
'current' is a pointer, so the right form is 'down_write(¤t->mm->mmap_sem)'.
Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -905,7 +905,7 @@ void vm_stat_account(struct mm_struct *mm, unsigned long flags, | |||
905 | #endif /* CONFIG_PROC_FS */ | 905 | #endif /* CONFIG_PROC_FS */ |
906 | 906 | ||
907 | /* | 907 | /* |
908 | * The caller must hold down_write(current->mm->mmap_sem). | 908 | * The caller must hold down_write(¤t->mm->mmap_sem). |
909 | */ | 909 | */ |
910 | 910 | ||
911 | unsigned long do_mmap_pgoff(struct file *file, unsigned long addr, | 911 | unsigned long do_mmap_pgoff(struct file *file, unsigned long addr, |