aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorSeth Jennings <[email protected]>2013-04-29 15:08:35 -0700
committerLinus Torvalds <[email protected]>2013-04-29 15:54:38 -0700
commit1eec6702a80e04416d528846a5ff2122484d95ec (patch)
treeead36835b194b3253cef6c4391489fef6a574575 /net/lapb/lapb_iface.c
parent2f772e6cadf8ad8fca38927b17e6be028be669f5 (diff)
mm: allow for outstanding swap writeback accounting
To prevent flooding the swap device with writebacks, frontswap backends need to count and limit the number of outstanding writebacks. The incrementing of the counter can be done before the call to __swap_writepage(). However, the caller must receive a notification when the writeback completes in order to decrement the counter. To achieve this functionality, this patch modifies __swap_writepage() to take the bio completion callback function as an argument. end_swap_bio_write(), the normal bio completion function, is also made non-static so that code doing the accounting can call it after the accounting is done. There should be no behavioural change to existing code. 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