aboutsummaryrefslogtreecommitdiffstats
path: root/fs/erofs/inode.c
diff options
context:
space:
mode:
authorGao Xiang <hsiangkao@linux.alibaba.com>2021-08-13 13:29:31 +0800
committerGao Xiang <hsiangkao@linux.alibaba.com>2021-08-19 00:13:43 +0800
commiteadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350 (patch)
tree6675343c98541503c6fbfd91d8ced4cec1ead430 /fs/erofs/inode.c
parenterofs: add support for the full decompressed length (diff)
downloadlinux-dev-eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350.tar.xz
linux-dev-eadcd6b5a1eb39866ab8d8a3e4f2e51bc51a2350.zip
erofs: add fiemap support with iomap
This adds fiemap support for both uncompressed files and compressed files by using iomap infrastructure. Link: https://lore.kernel.org/r/20210813052931.203280-3-hsiangkao@linux.alibaba.com Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Diffstat (limited to 'fs/erofs/inode.c')
-rw-r--r--fs/erofs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/erofs/inode.c b/fs/erofs/inode.c
index 92728da1d206..d13e0709599c 100644
--- a/fs/erofs/inode.c
+++ b/fs/erofs/inode.c
@@ -365,6 +365,7 @@ const struct inode_operations erofs_generic_iops = {
.getattr = erofs_getattr,
.listxattr = erofs_listxattr,
.get_acl = erofs_get_acl,
+ .fiemap = erofs_fiemap,
};
const struct inode_operations erofs_symlink_iops = {