diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2011-01-26 07:10:43 +0100 |
---|---|---|
committer | Li Zefan <lizf@cn.fujitsu.com> | 2011-01-26 18:11:18 +0100 |
commit | 4d728ec7aefdca5419d2ebfb28c147e81a4b59f4 (patch) | |
tree | 19dc56836d053c04d796ddca126dd60232175bb0 /net/wireless | |
parent | Btrfs: Fix memory leak in writepage fixup work (diff) | |
download | linux-4d728ec7aefdca5419d2ebfb28c147e81a4b59f4.tar.xz linux-4d728ec7aefdca5419d2ebfb28c147e81a4b59f4.zip |
Btrfs: Fix file clone when source offset is not 0
Suppose:
- the source extent is: [0, 100]
- the src offset is 10
- the clone length is 90
- the dest offset is 0
This statement:
new_key.offset = key.offset + destoff - off
will produce such an extent for the dest file:
[ino, BTRFS_EXTENT_DATA_KEY, -10]
, which is obviously wrong.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'net/wireless')
0 files changed, 0 insertions, 0 deletions