projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e868677
)
mm/zswap.c: get swapper address_space by using macro
author
Sunghan Suh
<
[email protected]
>
Wed, 11 Sep 2013 21:20:22 +0000
(14:20 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 11 Sep 2013 22:57:08 +0000
(15:57 -0700)
There is a proper macro to get the corresponding swapper address space
from a swap entry. Instead of directly accessing "swapper_spaces" array,
use the "swap_address_space" macro.
Signed-off-by: Sunghan Suh <
[email protected]
>
Reviewed-by: Bob Liu <
[email protected]
>
Reviewed-by: Wanpeng Li <
[email protected]
>
Acked-by: Seth Jennings <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/zswap.c
patch
|
blob
|
history
diff --git
a/mm/zswap.c
b/mm/zswap.c
index deda2b671e128600c817714754a6d58decb0c50a..efed4c8b7f5b82caa0f183cad2751de12a2b4082 100644
(file)
--- a/
mm/zswap.c
+++ b/
mm/zswap.c
@@
-409,7
+409,7
@@
static int zswap_get_swap_cache_page(swp_entry_t entry,
struct page **retpage)
{
struct page *found_page, *new_page = NULL;
- struct address_space *swapper_space =
&swapper_spaces[swp_type(entry)]
;
+ struct address_space *swapper_space =
swap_address_space(entry)
;
int err;
*retpage = NULL;