Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139168
b: refs/heads/master
c: 9fab561
h: refs/heads/master
v: v3
  • Loading branch information
Hugh Dickins authored and Linus Torvalds committed Apr 1, 2009
1 parent 6cd36fa commit 694b771
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 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: 327c0e968645f2601a43f5ea7c19c7b3a5fa0a34
refs/heads/master: 9fab5619bdd7f84cdd22cc760778f759f9819a33
5 changes: 5 additions & 0 deletions trunk/include/linux/swap.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ static inline struct page *swapin_readahead(swp_entry_t swp, gfp_t gfp_mask,
return NULL;
}

static inline int swap_writepage(struct page *p, struct writeback_control *wbc)
{
return 0;
}

static inline struct page *lookup_swap_cache(swp_entry_t swp)
{
return NULL;
Expand Down
3 changes: 1 addition & 2 deletions trunk/mm/shmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,7 @@ static int shmem_writepage(struct page *page, struct writeback_control *wbc)
swap_duplicate(swap);
BUG_ON(page_mapped(page));
page_cache_release(page); /* pagecache ref */
set_page_dirty(page);
unlock_page(page);
swap_writepage(page, wbc);
if (inode) {
mutex_lock(&shmem_swaplist_mutex);
/* move instead of add in case we're racing */
Expand Down

0 comments on commit 694b771

Please sign in to comment.