ext4: move mpage_put_bnr_to_bhs()'s functionality to mpage_da_submit_io()
authorTheodore Ts'o <tytso@mit.edu>
Thu, 28 Oct 2010 01:30:10 +0000 (21:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 28 Oct 2010 01:30:10 +0000 (21:30 -0400)
commit1de3e3df917459422cb2aecac440febc8879d410
tree3ff2584fa323ec855dec74b7e842e5e4abe39597
parent3ecdb3a193a5f224f084c04a63aa28cdccf4d7d0
ext4: move mpage_put_bnr_to_bhs()'s functionality to mpage_da_submit_io()

This massively simplifies the ext4_da_writepages() code path by
completely removing mpage_put_bnr_bhs(), which is almost 100 lines of
code iterating over a set of pages using pagevec_lookup(), and folds
that functionality into mpage_da_submit_io()'s existing
pagevec_lookup() loop.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/inode.c