diff options
author | Tom Rini <trini@konsulko.com> | 2022-01-18 12:31:42 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-01-18 12:31:42 -0500 |
commit | 115090ef59ba6a371bed40181af8ceecc5635777 (patch) | |
tree | 4bd3d9c53a16adcbb4f1498f0f0ed0fa011a5ef0 /fs/btrfs/inode.c | |
parent | 4e81f3be340072ad2c0aac093677333702f14f22 (diff) | |
parent | 1041eae4203cac442e4750a22c1f0007e2b9f628 (diff) |
Merge branch '2022-01-17-assorted-updates'
- musb gadget pinctrl-single, pxa3xx nand bugfixes
- btrfs BLAKE2 hash support and another btrfs fix
- board_r cleanups
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 2c2379303d..d00b515333 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -717,6 +717,14 @@ int btrfs_file_read(struct btrfs_root *root, u64 ino, u64 file_offset, u64 len, ret = 0; goto out; } + /* + * Find a extent gap, mostly caused by NO_HOLE feature. + * Just to next offset directly. + */ + if (next_offset > cur) { + cur = next_offset; + continue; + } } fi = btrfs_item_ptr(path.nodes[0], path.slots[0], struct btrfs_file_extent_item); |