ext4: ext4_inline_data_fiemap should respect callers argument
authorDmitry Monakhov <dmonakhov@openvz.org>
Tue, 2 Dec 2014 21:11:20 +0000 (16:11 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 2 Dec 2014 21:11:20 +0000 (16:11 -0500)
commitd952d69e268f833c85c0bafee9f67f9dba85044b
tree8292c9e39fa90e279a9e1698f894d400579b6c5b
parent5cc28a9eaab21ce7ded7845b32e2eafc4bbeb175
ext4: ext4_inline_data_fiemap should respect callers argument

Currently ext4_inline_data_fiemap ignores requested arguments (start
and len) which may lead endless loop if start != 0.  Also fix incorrect
extent length determination.

Signed-off-by: Dmitry Monakhov <dmonakhov@openvz.org>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/inline.c