projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mm: add_to_swap_cache() does not return -EEXIST
[deliverable/linux.git]
/
mm
/
shmem.c
diff --git
a/mm/shmem.c
b/mm/shmem.c
index bd20f8bb02aa7ac7d7dea5d581075309425d040c..376d8f0a8f6bd37f7ac7fd536dbeba2d2b80ab1e 100644
(file)
--- a/
mm/shmem.c
+++ b/
mm/shmem.c
@@
-1097,6
+1097,10
@@
static int shmem_writepage(struct page *page, struct writeback_control *wbc)
shmem_swp_unmap(entry);
unlock:
spin_unlock(&info->lock);
+ /*
+ * add_to_swap_cache() doesn't return -EEXIST, so we can safely
+ * clear SWAP_HAS_CACHE flag.
+ */
swapcache_free(swap, NULL);
redirty:
set_page_dirty(page);
This page took
0.026184 seconds
and
5
git commands to generate.