]> git.baikalelectronics.ru Git - kernel.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)
commit1eb655a66dd930cc284c865c8efb47b06ff865fb
treea0cbfbc0bf259b4382b881a9108b21dc88525389
parent0e408708c75aec846ef4ce79520b3887a68a4874
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