Btrfs: fix arithmetic error in clone ioctl
authorSage Weil <sage@newdream.net>
Mon, 21 Sep 2009 20:00:27 +0000 (16:00 -0400)
committerChris Mason <chris.mason@oracle.com>
Mon, 21 Sep 2009 20:00:27 +0000 (16:00 -0400)
commit1fb58a6051cd904a9f8e0344b22e31921d6b5a4d
tree2f8c1a89b3e4f119590e89cebe1a5be1a02f487a
parent76dda93c6ae2c1dc3e6cde34569d6aca26b0c918
Btrfs: fix arithmetic error in clone ioctl

Fix an arithmetic error that was breaking extents cloned via the clone
ioctl starting in the second half of a file.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c