Commit 23ff4440 authored by Daniel Walker's avatar Daniel Walker Committed by Linus Torvalds

whitespace fixes: fork

Signed-off-by: default avatarDaniel Walker <dwalker@mvista.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 902749cd
...@@ -268,7 +268,7 @@ static inline int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) ...@@ -268,7 +268,7 @@ static inline int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
get_file(file); get_file(file);
if (tmp->vm_flags & VM_DENYWRITE) if (tmp->vm_flags & VM_DENYWRITE)
atomic_dec(&inode->i_writecount); atomic_dec(&inode->i_writecount);
/* insert tmp into the share list, just after mpnt */ /* insert tmp into the share list, just after mpnt */
spin_lock(&file->f_mapping->i_mmap_lock); spin_lock(&file->f_mapping->i_mmap_lock);
tmp->vm_truncate_count = mpnt->vm_truncate_count; tmp->vm_truncate_count = mpnt->vm_truncate_count;
...@@ -331,7 +331,7 @@ static inline void mm_free_pgd(struct mm_struct * mm) ...@@ -331,7 +331,7 @@ static inline void mm_free_pgd(struct mm_struct * mm)
#define mm_free_pgd(mm) #define mm_free_pgd(mm)
#endif /* CONFIG_MMU */ #endif /* CONFIG_MMU */
__cacheline_aligned_in_smp DEFINE_SPINLOCK(mmlist_lock); __cacheline_aligned_in_smp DEFINE_SPINLOCK(mmlist_lock);
#define allocate_mm() (kmem_cache_alloc(mm_cachep, GFP_KERNEL)) #define allocate_mm() (kmem_cache_alloc(mm_cachep, GFP_KERNEL))
#define free_mm(mm) (kmem_cache_free(mm_cachep, (mm))) #define free_mm(mm) (kmem_cache_free(mm_cachep, (mm)))
...@@ -738,8 +738,8 @@ static struct files_struct *dup_fd(struct files_struct *oldf, int *errorp) ...@@ -738,8 +738,8 @@ static struct files_struct *dup_fd(struct files_struct *oldf, int *errorp)
/* compute the remainder to be cleared */ /* compute the remainder to be cleared */
size = (new_fdt->max_fds - open_files) * sizeof(struct file *); size = (new_fdt->max_fds - open_files) * sizeof(struct file *);
/* This is long word aligned thus could use a optimized version */ /* This is long word aligned thus could use a optimized version */
memset(new_fds, 0, size); memset(new_fds, 0, size);
if (new_fdt->max_fds > open_files) { if (new_fdt->max_fds > open_files) {
int left = (new_fdt->max_fds-open_files)/8; int left = (new_fdt->max_fds-open_files)/8;
...@@ -1069,12 +1069,12 @@ static struct task_struct *copy_process(unsigned long clone_flags, ...@@ -1069,12 +1069,12 @@ static struct task_struct *copy_process(unsigned long clone_flags,
task_io_accounting_init(p); task_io_accounting_init(p);
acct_clear_integrals(p); acct_clear_integrals(p);
p->it_virt_expires = cputime_zero; p->it_virt_expires = cputime_zero;
p->it_prof_expires = cputime_zero; p->it_prof_expires = cputime_zero;
p->it_sched_expires = 0; p->it_sched_expires = 0;
INIT_LIST_HEAD(&p->cpu_timers[0]); INIT_LIST_HEAD(&p->cpu_timers[0]);
INIT_LIST_HEAD(&p->cpu_timers[1]); INIT_LIST_HEAD(&p->cpu_timers[1]);
INIT_LIST_HEAD(&p->cpu_timers[2]); INIT_LIST_HEAD(&p->cpu_timers[2]);
p->lock_depth = -1; /* -1 = no lock */ p->lock_depth = -1; /* -1 = no lock */
do_posix_clock_monotonic_gettime(&p->start_time); do_posix_clock_monotonic_gettime(&p->start_time);
...@@ -1239,7 +1239,7 @@ static struct task_struct *copy_process(unsigned long clone_flags, ...@@ -1239,7 +1239,7 @@ static struct task_struct *copy_process(unsigned long clone_flags,
* A fatal signal pending means that current will exit, so the new * A fatal signal pending means that current will exit, so the new
* thread can't slip out of an OOM kill (or normal SIGKILL). * thread can't slip out of an OOM kill (or normal SIGKILL).
*/ */
recalc_sigpending(); recalc_sigpending();
if (signal_pending(current)) { if (signal_pending(current)) {
spin_unlock(&current->sighand->siglock); spin_unlock(&current->sighand->siglock);
write_unlock_irq(&tasklist_lock); write_unlock_irq(&tasklist_lock);
......
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