diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent_io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index a389820d158b..1c70cff4a9e1 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c | |||
@@ -4213,8 +4213,8 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, | |||
4213 | return -ENOMEM; | 4213 | return -ENOMEM; |
4214 | path->leave_spinning = 1; | 4214 | path->leave_spinning = 1; |
4215 | 4215 | ||
4216 | start = ALIGN(start, BTRFS_I(inode)->root->sectorsize); | 4216 | start = round_down(start, BTRFS_I(inode)->root->sectorsize); |
4217 | len = ALIGN(len, BTRFS_I(inode)->root->sectorsize); | 4217 | len = round_up(max, BTRFS_I(inode)->root->sectorsize) - start; |
4218 | 4218 | ||
4219 | /* | 4219 | /* |
4220 | * lookup the last file extent. We're not using i_size here | 4220 | * lookup the last file extent. We're not using i_size here |