diff options
author | 2014-06-04 16:07:48 -0700 | |
---|---|---|
committer | 2014-06-04 16:54:02 -0700 | |
commit | dd6bd0d9c7dbb3951005db4e424abbd37c4ff801 (patch) | |
tree | cddb3dcb163db01dd9af6e39ca4aee6f1a5470c5 /mm/memory_hotplug.c | |
parent | fs/block_dev.c: add bdev_read_page() and bdev_write_page() (diff) | |
download | linux-dev-dd6bd0d9c7dbb3951005db4e424abbd37c4ff801.tar.xz linux-dev-dd6bd0d9c7dbb3951005db4e424abbd37c4ff801.zip |
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.
[akpm@linux-foundation.org: fix used-uninitialized bug]
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory_hotplug.c')
0 files changed, 0 insertions, 0 deletions