]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Btrfs: fix extent logging with O_DIRECT into prealloc
authorJosef Bacik <jbacik@fusionio.com>
Wed, 24 Apr 2013 20:32:55 +0000 (16:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 20:54:10 +0000 (13:54 -0700)
commitc665070565cc75380d09c4a94142781191e8c22e
tree3753938d89ed0f0d42bfc6d6e2a2c707da14825c
parent02cfa2ab3ec610411e30dd15b1df2df0e31afde7
Btrfs: fix extent logging with O_DIRECT into prealloc

commit eb384b55ae9c2055ea00c5cc87971e182d47aefa upstream.

This is the same as the fix from commit

Btrfs: fix bad extent logging

but for O_DIRECT.  I missed this when I fixed the problem originally, we were
still using the em for the orig_start and orig_block_len, which would be the
merged extent.  We need to use the actual extent from the on disk file extent
item, which we have to lookup to make sure it's ok to nocow anyway so just pass
in some pointers to hold this info.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/inode.c