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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:21:44 +0000 (17:21 -0700)
commit2a73161d42a658393f0a4dbb2286c125b516670e
tree765973bb452fc30ce23c56810914cc889b09c148
parent67f6e3082f2c3b1d94da9adba7a14e5b0b3e2c26
ext4: move test whether extent to map can be extended to one place

commit 09930042a2e94cf8ee79d22943915612c1e4ba51 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inode.c