]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitf868a48d06f8886cb0367568a12367fa4f21ea0d
tree9b15c2fa850f6c34589f80f8e41fad095aa04c43
parent503358ae01b70ce6909d19dd01287093f6b6271c
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