Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83069
b: refs/heads/master
c: 698dd4b
h: refs/heads/master
i:
  83067: 8b2e784
v: v3
  • Loading branch information
Matt Mackall authored and Linus Torvalds committed Feb 5, 2008
1 parent a3e8b5d commit e58c728
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 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: 824552574162ac00ae636fa41386b1072379ea4a
refs/heads/master: 698dd4ba6b12e34e1e432c944c01478c0b2cd773
6 changes: 6 additions & 0 deletions trunk/include/linux/swapops.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ static inline pgoff_t swp_offset(swp_entry_t entry)
return entry.val & SWP_OFFSET_MASK(entry);
}

/* check whether a pte points to a swap entry */
static inline int is_swap_pte(pte_t pte)
{
return !pte_none(pte) && !pte_present(pte) && !pte_file(pte);
}

/*
* Convert the arch-dependent pte representation of a swp_entry_t into an
* arch-independent swp_entry_t.
Expand Down
5 changes: 0 additions & 5 deletions trunk/mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ int putback_lru_pages(struct list_head *l)
return count;
}

static inline int is_swap_pte(pte_t pte)
{
return !pte_none(pte) && !pte_present(pte) && !pte_file(pte);
}

/*
* Restore a potential migration pte to a working pte entry
*/
Expand Down

0 comments on commit e58c728

Please sign in to comment.