]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix clone ioctl where range is adjacent to extent
authorSage Weil <sage@newdream.net>
Fri, 29 Oct 2010 19:37:33 +0000 (15:37 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 29 Oct 2010 19:37:33 +0000 (15:37 -0400)
commitb0d3237c22381efb8ebcc0a94d75198c677fc0b4
tree43b8bdc0ce9f76d2726096dbfbc72a04c141afa6
parent9cb3d780228842834a3349d19f06bc2b08c57c47
Btrfs: fix clone ioctl where range is adjacent to extent

We had an edge case issue where the requested range was just
following an existing extent. Instead of skipping to the next
extent, we used the previous one which lead to having zero
sized extents.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c