]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't set and clear delalloc for O_DIRECT writes
authorJosef Bacik <jbacik@fb.com>
Wed, 11 Feb 2015 20:08:58 +0000 (15:08 -0500)
committerChris Mason <clm@fb.com>
Sat, 14 Feb 2015 16:19:14 +0000 (08:19 -0800)
commita71e701ffb26aa95a9084dee3b8de258da7830ea
treeb0543175a216240566971738f492b6ab87ac4732
parent1640e8c5579da460d60764662af7f111aff2eb11
Btrfs: don't set and clear delalloc for O_DIRECT writes

We do this to get the space accounting, but this is just needless churn on the
io_tree, so just drop setting/clearing delalloc and just drop the reserved data
space when we have a successfull allocation.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fb.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/inode.c