Commit ec9bed9d authored by Vladimir Cernov's avatar Vladimir Cernov Committed by Linus Torvalds

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: default avatarVladimir Cernov <gg.kaspersky@gmail.com>
Reviewed-by: default avatarPekka Enberg <penberg@kernel.org>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ef0855d3
...@@ -42,11 +42,11 @@ static int madvise_need_mmap_write(int behavior) ...@@ -42,11 +42,11 @@ static int madvise_need_mmap_write(int behavior)
* We can potentially split a vm area into separate * We can potentially split a vm area into separate
* areas, each area with its own behavior. * areas, each area with its own behavior.
*/ */
static long madvise_behavior(struct vm_area_struct * vma, static long madvise_behavior(struct vm_area_struct *vma,
struct vm_area_struct **prev, struct vm_area_struct **prev,
unsigned long start, unsigned long end, int behavior) unsigned long start, unsigned long end, int behavior)
{ {
struct mm_struct * mm = vma->vm_mm; struct mm_struct *mm = vma->vm_mm;
int error = 0; int error = 0;
pgoff_t pgoff; pgoff_t pgoff;
unsigned long new_flags = vma->vm_flags; unsigned long new_flags = vma->vm_flags;
...@@ -215,8 +215,8 @@ static void force_shm_swapin_readahead(struct vm_area_struct *vma, ...@@ -215,8 +215,8 @@ static void force_shm_swapin_readahead(struct vm_area_struct *vma,
/* /*
* Schedule all required I/O operations. Do not wait for completion. * Schedule all required I/O operations. Do not wait for completion.
*/ */
static long madvise_willneed(struct vm_area_struct * vma, static long madvise_willneed(struct vm_area_struct *vma,
struct vm_area_struct ** prev, struct vm_area_struct **prev,
unsigned long start, unsigned long end) unsigned long start, unsigned long end)
{ {
struct file *file = vma->vm_file; struct file *file = vma->vm_file;
...@@ -270,8 +270,8 @@ static long madvise_willneed(struct vm_area_struct * vma, ...@@ -270,8 +270,8 @@ static long madvise_willneed(struct vm_area_struct * vma,
* An interface that causes the system to free clean pages and flush * An interface that causes the system to free clean pages and flush
* dirty pages is already available as msync(MS_INVALIDATE). * dirty pages is already available as msync(MS_INVALIDATE).
*/ */
static long madvise_dontneed(struct vm_area_struct * vma, static long madvise_dontneed(struct vm_area_struct *vma,
struct vm_area_struct ** prev, struct vm_area_struct **prev,
unsigned long start, unsigned long end) unsigned long start, unsigned long end)
{ {
*prev = vma; *prev = vma;
...@@ -459,7 +459,7 @@ madvise_behavior_valid(int behavior) ...@@ -459,7 +459,7 @@ madvise_behavior_valid(int behavior)
SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior) SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior)
{ {
unsigned long end, tmp; unsigned long end, tmp;
struct vm_area_struct * vma, *prev; struct vm_area_struct *vma, *prev;
int unmapped_error = 0; int unmapped_error = 0;
int error = -EINVAL; int error = -EINVAL;
int write; int write;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment