diff options
author | Josef Bacik <jbacik@fusionio.com> | 2013-10-14 12:08:38 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-11-11 21:58:05 -0500 |
commit | 25a50341b6269b0622434d9360f0c771d219681a (patch) | |
tree | 3ec594567b6c998ef8f489b7fd8a91febfff660b /lib/lru_cache.c | |
parent | 96192499c27e8b58d71f4370f29ca86d4ca915d7 (diff) | |
download | op-kernel-dev-25a50341b6269b0622434d9360f0c771d219681a.zip op-kernel-dev-25a50341b6269b0622434d9360f0c771d219681a.tar.gz |
Btrfs: handle a missing extent for the first file extent
While trying to kill our hole extents I noticed I was seeing problems where we
seek into a file and then start writing and then try to fiemap that file later.
This is because we search for offset 0, don't find anything and so back up one
slot, which puts us at the inode ref or something like that, which means we goto
not_found and create an extent map for our entire search area. This isn't quite
what we want, we want to move forward one slot and see if there is an extent
there so we can limit our hole extent. This patch fixes this problem, I will
add a testcase for this as well. Thanks,
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'lib/lru_cache.c')
0 files changed, 0 insertions, 0 deletions