]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit07e686f8d7f59eea8b75f803cb1f73fb84740b14
tree3ff2584fa323ec855dec74b7e842e5e4abe39597
parent4360fa983e410c244469f30b02a745b1835ce81c
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