ext4: defragmentation code cleanup
authorDmitry Monakhov <dmonakhov@openvz.org>
Fri, 12 Apr 2013 03:24:58 +0000 (23:24 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 12 Apr 2013 03:24:58 +0000 (23:24 -0400)
commit7e8b12c60ad38fb90a162df4e6fc120e3bee104e
treedefb07402dc57965237bd40af2ed1e92a7efcbb7
parent43e50f50866513144026f2ac1a1c5cc20c7a8428
ext4: defragmentation code cleanup

- grab_cache_page_write_begin() may not wait on page's writeback since
  (1d1d1a767206). But it is still reasonable to wait on page's writeback
  here in order to be on the safe side.

- Fix miss typo: pass 'length' instead of 'end' to __block_write_begin()
  https://bugzilla.kernel.org/show_bug.cgi?id=56241

TESTCASE: git://oss.sgi.com/xfs/cmds/xfstests.git
MKFS_OPTIONS="-b1024" ; ./check ext4/304

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Reviewed-by: Akira Fujita <a-fujita.rs.jp.nec.com>
fs/ext4/move_extent.c