diff options
author | Jie Liu <jeff.liu@oracle.com> | 2013-06-13 07:13:59 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2013-06-13 07:13:59 +0400 |
commit | 72dac95d4403ee7231e094e1735ecb96032e6117 (patch) | |
tree | ca9121413d53b7e61892382baa1bcab646c8eb0c /fs/ext4 | |
parent | 75497d0607b56e16e4fec3a62ef447c752428723 (diff) | |
download | linux-72dac95d4403ee7231e094e1735ecb96032e6117.tar.xz |
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>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/extents.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index d04f40936397..51e41687f51e 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -2125,7 +2125,8 @@ static int ext4_fill_fiemap_extents(struct inode *inode, next_del = ext4_find_delayed_extent(inode, &es); if (!exists && next_del) { exists = 1; - flags |= FIEMAP_EXTENT_DELALLOC; + flags |= (FIEMAP_EXTENT_DELALLOC | + FIEMAP_EXTENT_UNKNOWN); } up_read(&EXT4_I(inode)->i_data_sem); |