diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-15 18:34:49 (GMT) |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2015-10-20 18:33:21 (GMT) |
commit | 67f8cf3cee6f398d05de8333c04fea2ddb59c805 (patch) | |
tree | 26e05e284cd06011e2f18cf3731fc92766860320 /fs/f2fs/data.c | |
parent | 1d373a0ef7a7bc08f95ca820c627e961fb21e188 (diff) | |
download | linux-67f8cf3cee6f398d05de8333c04fea2ddb59c805.tar.xz |
f2fs: support fiemap for inline_data
There is a FIEMAP_EXTENT_INLINE_DATA, pointed out by Marc.
Reviewed-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
-rw-r--r-- | fs/f2fs/data.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index b052e7c..972eab7 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -771,6 +771,12 @@ int f2fs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, if (ret) return ret; + if (f2fs_has_inline_data(inode)) { + ret = f2fs_inline_data_fiemap(inode, fieinfo, start, len); + if (ret != -EAGAIN) + return ret; + } + mutex_lock(&inode->i_mutex); if (len >= isize) { |