]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix the returned block count if EXT4_IOC_MOVE_EXT fails
authorAkira Fujita <a-fujita@rs.jp.nec.com>
Mon, 23 Nov 2009 12:25:48 +0000 (07:25 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 23 Nov 2009 12:25:48 +0000 (07:25 -0500)
commit43f29a4603254285fe8cf689816fed574f544961
tree9b15c2fa850f6c34589f80f8e41fad095aa04c43
parente0707636995c5ea84dcb7e11404333d0f9b62a25
ext4: fix the returned block count if EXT4_IOC_MOVE_EXT fails

If the EXT4_IOC_MOVE_EXT ioctl fails, the number of blocks that were
exchanged before the failure should be returned to the userspace
caller.  Unfortunately, currently if the block size is not the same as
the page size, the returned block count that is returned is the
page-aligned block count instead of the actual block count.  This
commit addresses this bug.

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