Li Zefan 4d728ec7ae 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>
2011-01-27 01:11:18 +08:00
..
2011-01-27 01:05:02 +08:00
2010-11-21 22:26:08 -05:00
2008-09-25 11:04:06 -04:00
2010-11-27 13:37:50 -05:00
2010-10-29 15:14:23 -04:00
2010-05-21 18:31:18 -04:00