diff options
author | Dmitry Monakhov <dmonakhov@openvz.org> | 2014-12-02 21:11:20 (GMT) |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2014-12-02 21:11:20 (GMT) |
commit | d952d69e268f833c85c0bafee9f67f9dba85044b (patch) | |
tree | 8292c9e39fa90e279a9e1698f894d400579b6c5b /fs/ext4/ext4.h | |
parent | 5cc28a9eaab21ce7ded7845b32e2eafc4bbeb175 (diff) | |
download | linux-d952d69e268f833c85c0bafee9f67f9dba85044b.tar.xz |
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>
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 4186ec8..c24665e 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2634,7 +2634,7 @@ extern struct buffer_head *ext4_get_first_inline_block(struct inode *inode, int *retval); extern int ext4_inline_data_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, - int *has_inline); + int *has_inline, __u64 start, __u64 len); extern int ext4_try_to_evict_inline_data(handle_t *handle, struct inode *inode, int needed); |