ext4: fix the length returned by fiemap for an unallocated extent
authorTheodore Ts'o <tytso@mit.edu>
Sat, 2 May 2009 23:05:37 +0000 (19:05 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 May 2009 23:05:37 +0000 (19:05 -0400)
commiteefd7f03b86b8a319890e7fac5a6fcc7f8694b76
treed8dd02626d522926b828042f87c0850d42f86d2e
parentc9877b205f6ce7943bb95281342f4001cc1c00ec
ext4: fix the length returned by fiemap for an unallocated extent

If the file's blocks have not yet been allocated because of delayed
allocation, the length of the extent returned by fiemap is incorrect.
This commit fixes this bug.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c