mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
ext4: return FIEMAP_EXTENT_UNKNOWN for delalloc extents
Return the FIEMAP_EXTENT_UNKNOWN flag as well except the FIEMAP_EXTENT_DELALLOC because the data location of an delayed allocation extent is unknown. Signed-off-by: Jie Liu <jeff.liu@oracle.com>
This commit is contained in:
parent
75497d0607
commit
72dac95d44
1 changed files with 2 additions and 1 deletions
|
@ -2125,7 +2125,8 @@ static int ext4_fill_fiemap_extents(struct inode *inode,
|
||||||
next_del = ext4_find_delayed_extent(inode, &es);
|
next_del = ext4_find_delayed_extent(inode, &es);
|
||||||
if (!exists && next_del) {
|
if (!exists && next_del) {
|
||||||
exists = 1;
|
exists = 1;
|
||||||
flags |= FIEMAP_EXTENT_DELALLOC;
|
flags |= (FIEMAP_EXTENT_DELALLOC |
|
||||||
|
FIEMAP_EXTENT_UNKNOWN);
|
||||||
}
|
}
|
||||||
up_read(&EXT4_I(inode)->i_data_sem);
|
up_read(&EXT4_I(inode)->i_data_sem);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue