From: Matthew Wilcox Date: Wed, 4 Jun 2014 23:07:48 +0000 (-0700) Subject: swap: use bdev_read_page() / bdev_write_page() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~16^2~175 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd6bd0d9c7dbb3951005db4e424abbd37c4ff801;p=pandora-kernel.git 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 Cc: Dave Chinner Cc: Dheeraj Reddy Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed