]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@waya.furryterror.org>
Fri, 27 Mar 2015 03:28:31 +0000 (23:28 -0400)
commitb5755121b86134c39cae0f52b72fe58acea338ac
treec6e4d82ded7d67b990e55af2e4fbb8caa146d5ae
parenta531ddf4f614c41d49462acc5c783ac3d97b026e
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>
(cherry picked from commit 3266789f9d08b27275bae5ab1dcd27d1bbf15e79)
fs/btrfs/inode.c