diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-09 04:30:32 +0200 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-05-29 00:41:45 +0200 |
commit | 7f63eb77af7bd7580b27b0c3f249f7efaa5c63ae (patch) | |
tree | 1e87ddbee59e0dd1ee9b6f308c519bff92ba5c9b /fs/f2fs/f2fs.h | |
parent | f2fs: avoid value overflow in showing current status (diff) | |
download | linux-7f63eb77af7bd7580b27b0c3f249f7efaa5c63ae.tar.xz linux-7f63eb77af7bd7580b27b0c3f249f7efaa5c63ae.zip |
f2fs: report unwritten area in f2fs_fiemap
This patch slightly changes f2fs_fiemap function to report unwritten area.
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
-rw-r--r-- | fs/f2fs/f2fs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/f2fs.h b/fs/f2fs/f2fs.h index 160945f1707a..477e65fe7665 100644 --- a/fs/f2fs/f2fs.h +++ b/fs/f2fs/f2fs.h @@ -330,7 +330,9 @@ struct extent_tree { */ #define F2FS_MAP_NEW (1 << BH_New) #define F2FS_MAP_MAPPED (1 << BH_Mapped) -#define F2FS_MAP_FLAGS (F2FS_MAP_NEW | F2FS_MAP_MAPPED) +#define F2FS_MAP_UNWRITTEN (1 << BH_Unwritten) +#define F2FS_MAP_FLAGS (F2FS_MAP_NEW | F2FS_MAP_MAPPED |\ + F2FS_MAP_UNWRITTEN) struct f2fs_map_blocks { block_t m_pblk; |