diff options
Diffstat (limited to 'fs/btrfs/file.c')
-rw-r--r-- | fs/btrfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 0621a3a7d5d1..3a520899b024 100644 --- a/fs/btrfs/file.c +++ b/fs/btrfs/file.c | |||
@@ -1755,7 +1755,7 @@ static int find_desired_extent(struct inode *inode, loff_t *offset, int origin) | |||
1755 | start - root->sectorsize, | 1755 | start - root->sectorsize, |
1756 | root->sectorsize, 0); | 1756 | root->sectorsize, 0); |
1757 | if (IS_ERR(em)) { | 1757 | if (IS_ERR(em)) { |
1758 | ret = -ENXIO; | 1758 | ret = PTR_ERR(em); |
1759 | goto out; | 1759 | goto out; |
1760 | } | 1760 | } |
1761 | last_end = em->start + em->len; | 1761 | last_end = em->start + em->len; |
@@ -1767,7 +1767,7 @@ static int find_desired_extent(struct inode *inode, loff_t *offset, int origin) | |||
1767 | while (1) { | 1767 | while (1) { |
1768 | em = btrfs_get_extent_fiemap(inode, NULL, 0, start, len, 0); | 1768 | em = btrfs_get_extent_fiemap(inode, NULL, 0, start, len, 0); |
1769 | if (IS_ERR(em)) { | 1769 | if (IS_ERR(em)) { |
1770 | ret = -ENXIO; | 1770 | ret = PTR_ERR(em); |
1771 | break; | 1771 | break; |
1772 | } | 1772 | } |
1773 | 1773 | ||