]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Btrfs: fix eof while discarding extents
authorLiu Bo <liubo2009@cn.fujitsu.com>
Thu, 12 Apr 2012 20:03:56 +0000 (16:03 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 12 Apr 2012 20:03:56 +0000 (16:03 -0400)
commitb89203f74bdfcb15407d54d3f257b16a2ea19e62
treea0cbfbc0bf259b4382b881a9108b21dc88525389
parentd95603b262edb53d6016a8df0c150371d4d61e67
Btrfs: fix eof while discarding extents

We miscalculate the length of extents we're discarding, and it leads to
an eof of device.

Reported-by: Daniel Blueman <daniel@quora.org>
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/volumes.c