]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: initialize moved_len before calling ext4_move_extents()
authorKazuya Mio <k-mio@sx.jp.nec.com>
Tue, 24 Nov 2009 15:28:48 +0000 (10:28 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 24 Nov 2009 15:28:48 +0000 (10:28 -0500)
commitd9867843bc1cb8c0cac4010e902f713b464bdf13
treededc46c0d80a20061c0df463dcc6260aef394e2d
parenta376942594f55eba4e3fafab8d6b1cd48ea1f6b1
ext4: initialize moved_len before calling ext4_move_extents()

The move_extent.moved_len is used to pass back the number of exchanged
blocks count to user space.  Currently the caller must clear this
field; but we spend more code space checking for this requirement than
simply zeroing the field ourselves, so let's just make life easier for
everyone all around.

Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ioctl.c
fs/ext4/move_extent.c