aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorVladimir Cernov <gg.kaspersky@gmail.com>2013-09-11 17:20:15 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 18:57:00 -0400
commitec9bed9d385fd094b20fa0809c50741710afdc74 (patch)
tree504170ec00377cf435777009ed94014b48872c2f /mm
parentef0855d334e1e4af7c3e0c42146a8479ea14a5ab (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.c14
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 */
45static long madvise_behavior(struct vm_area_struct * vma, 45static 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 */
218static long madvise_willneed(struct vm_area_struct * vma, 218static 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 */
273static long madvise_dontneed(struct vm_area_struct * vma, 273static 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)
459SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior) 459SYSCALL_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;