Btrfs: simplify our write path
authorJosef Bacik <josef@redhat.com>
Tue, 25 Jan 2011 19:57:24 +0000 (14:57 -0500)
committerJosef Bacik <josef@redhat.com>
Thu, 17 Mar 2011 18:21:15 +0000 (14:21 -0400)
Our aio_write function is huge and kind of hard to follow at times.  So this
patch fixes this by breaking out the buffered and direct write paths out into
seperate functions so it's a little clearer what's going on.  I've also fixed
some wrong typing that we had and added the ability to handle getting an error
back from btrfs_set_extent_delalloc.  Tested this with xfstests and everything
came out fine.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>

No differences found
This page took 0.02539 seconds and 5 git commands to generate.