Btrfs: split up __extent_writepage to lower stack usage
authorChris Mason <clm@fb.com>
Wed, 21 May 2014 20:35:51 +0000 (13:35 -0700)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:58 +0000 (17:20 -0700)
commit40f765805f082ed679c55bf6ab60212e55fb6fc1
tree32896ba4b98e34067bc26834c8cc26bb13106f9c
parentfc4adbff823f76577ece26dcb88bf6f8392dbd43
Btrfs: split up __extent_writepage to lower stack usage

__extent_writepage has two unrelated parts.  First it does the delayed
allocation dance and second it does the mapping and IO for the page
we're actually writing.

This splits it up into those two parts so the stack from one doesn't
impact the stack from the other.

Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent_io.c
fs/btrfs/inode.c