diff options
author | Yan Zheng <zheng.yan@oracle.com> | 2008-11-11 09:33:29 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-11-11 09:33:29 -0500 |
commit | 8247b41ac980d125de8aeba6f33f381056ac0ecb (patch) | |
tree | 40b8ddab6be8ec6766007b22db9a6b898ff1a960 /fs/btrfs/compression.c | |
parent | 8a1413a296d38b54ded651e76ef16c033d38fd5d (diff) | |
download | linux-3.10-8247b41ac980d125de8aeba6f33f381056ac0ecb.tar.gz linux-3.10-8247b41ac980d125de8aeba6f33f381056ac0ecb.tar.bz2 linux-3.10-8247b41ac980d125de8aeba6f33f381056ac0ecb.zip |
Btrfs: Fix starting search offset inside btrfs_drop_extents
btrfs_drop_extents will drop paths and search again when it needs to
force COW of higher nodes. It was using the key it found during the last
search as the offset for the next search.
But, this wasn't always correct. The key could be from before our desired
range, and because we're dropping the path, it is possible for file's items
to change while we do the search again.
The fix here is to make sure we don't search for something smaller than
the offset btrfs_drop_extents was called with.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions