diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2013-11-12 15:07:47 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 12:09:07 +0900 |
commit | 58e97ba6b1a0c78d0c847998cf3bcfa5344c19aa (patch) | |
tree | 7823e9d881d7bcd128d92c72f060a86a31a6bd42 /mm/page_alloc.c | |
parent | 2de1a7e40a30bed83f3da60d8cf0937354d9e7d1 (diff) | |
download | op-kernel-dev-58e97ba6b1a0c78d0c847998cf3bcfa5344c19aa.zip op-kernel-dev-58e97ba6b1a0c78d0c847998cf3bcfa5344c19aa.tar.gz |
frontswap: enable call to invalidate area on swapoff
During swapoff the frontswap_map was NULL-ified before calling
frontswap_invalidate_area(). However the frontswap_invalidate_area()
exits early if frontswap_map is NULL. Invalidate was never called
during swapoff.
This patch moves frontswap_map_set() in swapoff just after calling
frontswap_invalidate_area() so outside of locks (swap_lock and
swap_info_struct->lock). This shouldn't be a problem as during swapon
the frontswap_map_set() is called also outside of any locks.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Shaohua Li <shli@fusionio.com>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions