Skip to content

Commit

Permalink
Btrfs: simplify our write path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josef Bacik committed Mar 17, 2011
1 parent 9f570b8 commit d0215f3
Showing 1 changed file with 180 additions and 175 deletions.
Loading

0 comments on commit d0215f3

Please sign in to comment.