linux-stable/include
Seth Jennings 1eec6702a8 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 <sjenning@linux.vnet.ibm.com>
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-04-29 15:54:38 -07:00
..
acpi
asm-generic mm: allow arch code to control the user page table ceiling 2013-04-29 15:54:34 -07:00
clocksource
crypto
drm
keys
linux mm: allow for outstanding swap writeback accounting 2013-04-29 15:54:38 -07:00
math-emu
media
memory
misc
net net: fix incorrect credentials passing 2013-04-20 16:56:42 -04:00
pcmcia
ras
rdma
rxrpc
scsi
sound
target
trace mm: trace filemap add and del 2013-04-29 15:54:28 -07:00
uapi mm: make snapshotting pages for stable writes a per-bio operation 2013-04-29 15:54:33 -07:00
video fbdev: Merge fbdev topic branches 2013-04-15 12:00:38 +03:00
xen xen: drop tracking of IRQ vector 2013-04-16 15:05:45 -04:00
Kbuild