]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix a bug when llseek for delalloc bytes behind prealloc extents
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 7 Jan 2013 10:10:12 +0000 (10:10 +0000)
committerJosef Bacik <josef@toxicpanda.com>
Mon, 14 Jan 2013 18:53:22 +0000 (13:53 -0500)
commit51adfb02518b3809c7eafc530699d4e0b2d74f24
tree95e9e8326d4a39feedc591c8d05de33d5db46d96
parentc637c3377c99ca89534eff13fac41eba1701f362
Btrfs: fix a bug when llseek for delalloc bytes behind prealloc extents

xfstests case 285 complains.

It it because btrfs did not try to find unwritten delalloc
bytes(only dirty pages, not yet writeback) behind prealloc
extents, it ends up finding nothing while we're with SEEK_DATA.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/file.c
fs/btrfs/inode.c