diff options
author | Vladimir Cernov <gg.kaspersky@gmail.com> | 2013-09-11 17:20:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:57:00 -0400 |
commit | ec9bed9d385fd094b20fa0809c50741710afdc74 (patch) | |
tree | 504170ec00377cf435777009ed94014b48872c2f /mm | |
parent | ef0855d334e1e4af7c3e0c42146a8479ea14a5ab (diff) |
mm/madvise.c: fix coding-style errors
This fixes following errors:
- ERROR: "(foo*)" should be "(foo *)"
- ERROR: "foo ** bar" should be "foo **bar"
Signed-off-by: Vladimir Cernov <gg.kaspersky@gmail.com>
Reviewed-by: Pekka Enberg <penberg@kernel.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/madvise.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mm/madvise.c b/mm/madvise.c index 7055883e6e25..936799f042cc 100644 --- a/mm/madvise.c +++ b/mm/madvise.c | |||
@@ -42,11 +42,11 @@ static int madvise_need_mmap_write(int behavior) | |||
42 | * We can potentially split a vm area into separate | 42 | * We can potentially split a vm area into separate |
43 | * areas, each area with its own behavior. | 43 | * areas, each area with its own behavior. |
44 | */ | 44 | */ |
45 | static long madvise_behavior(struct vm_area_struct * vma, | 45 | static long madvise_behavior(struct vm_area_struct *vma, |
46 | struct vm_area_struct **prev, | 46 | struct vm_area_struct **prev, |
47 | unsigned long start, unsigned long end, int behavior) | 47 | unsigned long start, unsigned long end, int behavior) |
48 | { | 48 | { |
49 | struct mm_struct * mm = vma->vm_mm; | 49 | struct mm_struct *mm = vma->vm_mm; |
50 | int error = 0; | 50 | int error = 0; |
51 | pgoff_t pgoff; | 51 | pgoff_t pgoff; |
52 | unsigned long new_flags = vma->vm_flags; | 52 | unsigned long new_flags = vma->vm_flags; |
@@ -215,8 +215,8 @@ static void force_shm_swapin_readahead(struct vm_area_struct *vma, | |||
215 | /* | 215 | /* |
216 | * Schedule all required I/O operations. Do not wait for completion. | 216 | * Schedule all required I/O operations. Do not wait for completion. |
217 | */ | 217 | */ |
218 | static long madvise_willneed(struct vm_area_struct * vma, | 218 | static long madvise_willneed(struct vm_area_struct *vma, |
219 | struct vm_area_struct ** prev, | 219 | struct vm_area_struct **prev, |
220 | unsigned long start, unsigned long end) | 220 | unsigned long start, unsigned long end) |
221 | { | 221 | { |
222 | struct file *file = vma->vm_file; | 222 | struct file *file = vma->vm_file; |
@@ -270,8 +270,8 @@ static long madvise_willneed(struct vm_area_struct * vma, | |||
270 | * An interface that causes the system to free clean pages and flush | 270 | * An interface that causes the system to free clean pages and flush |
271 | * dirty pages is already available as msync(MS_INVALIDATE). | 271 | * dirty pages is already available as msync(MS_INVALIDATE). |
272 | */ | 272 | */ |
273 | static long madvise_dontneed(struct vm_area_struct * vma, | 273 | static long madvise_dontneed(struct vm_area_struct *vma, |
274 | struct vm_area_struct ** prev, | 274 | struct vm_area_struct **prev, |
275 | unsigned long start, unsigned long end) | 275 | unsigned long start, unsigned long end) |
276 | { | 276 | { |
277 | *prev = vma; | 277 | *prev = vma; |
@@ -459,7 +459,7 @@ madvise_behavior_valid(int behavior) | |||
459 | SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior) | 459 | SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior) |
460 | { | 460 | { |
461 | unsigned long end, tmp; | 461 | unsigned long end, tmp; |
462 | struct vm_area_struct * vma, *prev; | 462 | struct vm_area_struct *vma, *prev; |
463 | int unmapped_error = 0; | 463 | int unmapped_error = 0; |
464 | int error = -EINVAL; | 464 | int error = -EINVAL; |
465 | int write; | 465 | int write; |