aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorSeth Jennings <[email protected]>2013-04-29 15:08:34 -0700
committerLinus Torvalds <[email protected]>2013-04-29 15:54:38 -0700
commit2f772e6cadf8ad8fca38927b17e6be028be669f5 (patch)
tree5eac4cfd72c6e8e9b4d48ad7463cdf1a8b97f7b4 /net/lapb/lapb_iface.c
parente8420a8ece80b3fe810415ecf061d54ca7fab266 (diff)
mm: break up swap_writepage() for frontswap backends
swap_writepage() is currently where frontswap hooks into the swap write path to capture pages with the frontswap_store() function. However, if a frontswap backend wants to "resume" the writeback of a page to the swap device, it can't call swap_writepage() as the page will simply reenter the backend. This patch separates swap_writepage() into a top and bottom half, the bottom half named __swap_writepage() to allow a frontswap backend, like zswap, to resume writeback beyond the frontswap_store() hook. __add_to_swap_cache() is also made non-static so that the page for which writeback is to be resumed can be added to the swap cache. Signed-off-by: Seth Jennings <[email protected]> Signed-off-by: Bob Liu <[email protected]> Acked-by: Minchan Kim <[email protected]> Reviewed-by: Dan Magenheimer <[email protected]> Cc: Konrad Rzeszutek Wilk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions