diff options
author | Sasha Levin <levinsasha928@gmail.com> | 2012-06-10 06:51:00 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-06-11 15:30:38 -0400 |
commit | 4bb3e31ef408a5ce460da3555c9f59dfe39636ff (patch) | |
tree | 9508bd7d8574cbf419554de6da5f549941ad003a /mm/frontswap.c | |
parent | ef3835974103fc52c12962d91b224fbc2edcabe6 (diff) |
mm: frontswap: trivial coding convention issues
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'mm/frontswap.c')
-rw-r--r-- | mm/frontswap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mm/frontswap.c b/mm/frontswap.c index 557e8af4a7d7..7ec53d53c13a 100644 --- a/mm/frontswap.c +++ b/mm/frontswap.c | |||
@@ -148,8 +148,9 @@ int __frontswap_store(struct page *page) | |||
148 | frontswap_clear(sis, offset); | 148 | frontswap_clear(sis, offset); |
149 | atomic_dec(&sis->frontswap_pages); | 149 | atomic_dec(&sis->frontswap_pages); |
150 | inc_frontswap_failed_stores(); | 150 | inc_frontswap_failed_stores(); |
151 | } else | 151 | } else { |
152 | inc_frontswap_failed_stores(); | 152 | inc_frontswap_failed_stores(); |
153 | } | ||
153 | if (frontswap_writethrough_enabled) | 154 | if (frontswap_writethrough_enabled) |
154 | /* report failure so swap also writes to swap device */ | 155 | /* report failure so swap also writes to swap device */ |
155 | ret = -1; | 156 | ret = -1; |
@@ -250,9 +251,9 @@ void frontswap_shrink(unsigned long target_pages) | |||
250 | for (type = swap_list.head; type >= 0; type = si->next) { | 251 | for (type = swap_list.head; type >= 0; type = si->next) { |
251 | si = swap_info[type]; | 252 | si = swap_info[type]; |
252 | si_frontswap_pages = atomic_read(&si->frontswap_pages); | 253 | si_frontswap_pages = atomic_read(&si->frontswap_pages); |
253 | if (total_pages_to_unuse < si_frontswap_pages) | 254 | if (total_pages_to_unuse < si_frontswap_pages) { |
254 | pages = pages_to_unuse = total_pages_to_unuse; | 255 | pages = pages_to_unuse = total_pages_to_unuse; |
255 | else { | 256 | } else { |
256 | pages = si_frontswap_pages; | 257 | pages = si_frontswap_pages; |
257 | pages_to_unuse = 0; /* unuse all */ | 258 | pages_to_unuse = 0; /* unuse all */ |
258 | } | 259 | } |