|
@@ -4213,8 +4213,8 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo,
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
path->leave_spinning = 1;
|
|
path->leave_spinning = 1;
|
|
|
|
|
|
- start = ALIGN(start, BTRFS_I(inode)->root->sectorsize);
|
|
|
|
- len = ALIGN(len, BTRFS_I(inode)->root->sectorsize);
|
|
|
|
|
|
+ start = round_down(start, BTRFS_I(inode)->root->sectorsize);
|
|
|
|
+ len = round_up(max, BTRFS_I(inode)->root->sectorsize) - start;
|
|
|
|
|
|
/*
|
|
/*
|
|
* lookup the last file extent. We're not using i_size here
|
|
* lookup the last file extent. We're not using i_size here
|