diff options
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 2e25d698bab0..288c2cdc7543 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -4156,6 +4156,12 @@ static ssize_t btrfs_direct_IO(int rw, struct kiocb *iocb, | |||
4156 | return -EINVAL; | 4156 | return -EINVAL; |
4157 | } | 4157 | } |
4158 | 4158 | ||
4159 | static int btrfs_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, | ||
4160 | __u64 start, __u64 len) | ||
4161 | { | ||
4162 | return extent_fiemap(inode, fieinfo, start, len, btrfs_get_extent); | ||
4163 | } | ||
4164 | |||
4159 | int btrfs_readpage(struct file *file, struct page *page) | 4165 | int btrfs_readpage(struct file *file, struct page *page) |
4160 | { | 4166 | { |
4161 | struct extent_io_tree *tree; | 4167 | struct extent_io_tree *tree; |
@@ -5021,6 +5027,7 @@ static struct inode_operations btrfs_file_inode_operations = { | |||
5021 | .removexattr = btrfs_removexattr, | 5027 | .removexattr = btrfs_removexattr, |
5022 | .permission = btrfs_permission, | 5028 | .permission = btrfs_permission, |
5023 | .fallocate = btrfs_fallocate, | 5029 | .fallocate = btrfs_fallocate, |
5030 | .fiemap = btrfs_fiemap, | ||
5024 | }; | 5031 | }; |
5025 | static struct inode_operations btrfs_special_inode_operations = { | 5032 | static struct inode_operations btrfs_special_inode_operations = { |
5026 | .getattr = btrfs_getattr, | 5033 | .getattr = btrfs_getattr, |