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)
commitf9e4fb53938de5db01950c9dfe479703b2f5c964
tree95e9e8326d4a39feedc591c8d05de33d5db46d96
parent1214b53f90131fee1f950010c43e92455fe598ab
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