Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 176763
b: refs/heads/master
c: 9cfc862
h: refs/heads/master
i:
  176761: 2e4d189
  176759: adb5bbd
v: v3
  • Loading branch information
Linus Torvalds committed Dec 16, 2009
1 parent 4477d63 commit 68bf84f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: 243797f59b748f679ab88d456fcc4f92236d724b
refs/heads/master: 9cfc86249f32d984339c6d1f8a1fd1326989b3b8
14 changes: 8 additions & 6 deletions trunk/include/linux/ksm.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ void ksm_migrate_page(struct page *newpage, struct page *oldpage);

#else /* !CONFIG_KSM */

static inline int ksm_madvise(struct vm_area_struct *vma, unsigned long start,
unsigned long end, int advice, unsigned long *vm_flags)
{
return 0;
}

static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm)
{
return 0;
Expand All @@ -114,6 +108,13 @@ static inline int PageKsm(struct page *page)
return 0;
}

#ifdef CONFIG_MMU
static inline int ksm_madvise(struct vm_area_struct *vma, unsigned long start,
unsigned long end, int advice, unsigned long *vm_flags)
{
return 0;
}

static inline struct page *ksm_might_need_to_copy(struct page *page,
struct vm_area_struct *vma, unsigned long address)
{
Expand All @@ -140,6 +141,7 @@ static inline int rmap_walk_ksm(struct page *page, int (*rmap_one)(struct page*,
static inline void ksm_migrate_page(struct page *newpage, struct page *oldpage)
{
}
#endif /* CONFIG_MMU */
#endif /* !CONFIG_KSM */

#endif /* __LINUX_KSM_H */

0 comments on commit 68bf84f

Please sign in to comment.