]> git.karo-electronics.de Git - karo-tx-linux.git/commit
swap: use bdev_read_page() / bdev_write_page()
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 14 May 2014 00:01:55 +0000 (10:01 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:01:55 +0000 (10:01 +1000)
commit03b137e17e883bacc84567e027b3635034c9b78c
treec50d2feb8c215e28be0cbaeff4414e66884f324e
parent64c63aeb3268d7e5ec4059346e3bfce239d255a9
swap: use bdev_read_page() / bdev_write_page()

By calling the device driver to write the page directly, we avoid
allocating a BIO, which allows us to free memory without allocating
memory.

Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Dheeraj Reddy <dheeraj.reddy@intel.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_io.c