mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
Btrfs: simplify our write path
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>
This commit is contained in:
parent
9f570b8d48
commit
d0215f3e5e
1 changed files with 180 additions and 175 deletions
357
fs/btrfs/file.c
357
fs/btrfs/file.c
Loading…
Add table
Add a link
Reference in a new issue