diff options
Diffstat (limited to 'mm/shmem.c')
-rw-r--r-- | mm/shmem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/shmem.c b/mm/shmem.c index 7ec78e24a30d..d94d2e9146bc 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
@@ -1068,8 +1068,7 @@ static int shmem_writepage(struct page *page, struct writeback_control *wbc) | |||
1068 | swap_duplicate(swap); | 1068 | swap_duplicate(swap); |
1069 | BUG_ON(page_mapped(page)); | 1069 | BUG_ON(page_mapped(page)); |
1070 | page_cache_release(page); /* pagecache ref */ | 1070 | page_cache_release(page); /* pagecache ref */ |
1071 | set_page_dirty(page); | 1071 | swap_writepage(page, wbc); |
1072 | unlock_page(page); | ||
1073 | if (inode) { | 1072 | if (inode) { |
1074 | mutex_lock(&shmem_swaplist_mutex); | 1073 | mutex_lock(&shmem_swaplist_mutex); |
1075 | /* move instead of add in case we're racing */ | 1074 | /* move instead of add in case we're racing */ |