Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217479
b: refs/heads/master
c: 1b36ba8
h: refs/heads/master
i:
  217477: 773c65d
  217475: 1d61bf7
  217471: 094a9c4
v: v3
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed Oct 26, 2010
1 parent 944a8ae commit 0a9e11e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e6219ec8195efd5640765e657810f262ad9d1a92
refs/heads/master: 1b36ba815bd91f17e31277a44dd5c6b6a5a8d97e
13 changes: 12 additions & 1 deletion trunk/mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -3351,7 +3351,7 @@ int in_gate_area_no_task(unsigned long addr)

#endif /* __HAVE_ARCH_GATE_AREA */

static int follow_pte(struct mm_struct *mm, unsigned long address,
static int __follow_pte(struct mm_struct *mm, unsigned long address,
pte_t **ptepp, spinlock_t **ptlp)
{
pgd_t *pgd;
Expand Down Expand Up @@ -3388,6 +3388,17 @@ static int follow_pte(struct mm_struct *mm, unsigned long address,
return -EINVAL;
}

static inline int follow_pte(struct mm_struct *mm, unsigned long address,
pte_t **ptepp, spinlock_t **ptlp)
{
int res;

/* (void) is needed to make gcc happy */
(void) __cond_lock(*ptlp,
!(res = __follow_pte(mm, address, ptepp, ptlp)));
return res;
}

/**
* follow_pfn - look up PFN at a user virtual address
* @vma: memory mapping
Expand Down

0 comments on commit 0a9e11e

Please sign in to comment.