ext4: move test whether extent to map can be extended to one place
authorJan Kara <jack@suse.cz>
Sat, 17 Aug 2013 13:57:56 +0000 (09:57 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 17 Aug 2013 13:57:56 +0000 (09:57 -0400)
Currently the logic whether the current buffer can be added to an extent
of buffers to map is split between mpage_add_bh_to_extent() and
add_page_bufs_to_extent(). Move the whole logic to
mpage_add_bh_to_extent() which makes things a bit more straightforward
and make following i_size fixes easier.

Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org

No differences found