Btrfs: do not call file_update_time in aio_write
authorJosef Bacik <jbacik@fusionio.com>
Fri, 9 Nov 2012 15:53:21 +0000 (10:53 -0500)
committerChris Mason <chris.mason@fusionio.com>
Mon, 17 Dec 2012 01:46:27 +0000 (20:46 -0500)
commit0e02b8fe5a814ac6f2f92a694a1b141fad4a085f
treec751a0aeb81809401df1fd87a36376034ef53a87
parentfdb18b1298617201f00ab5826ed604175c1716fc
Btrfs: do not call file_update_time in aio_write

This starts a transaction and dirties the inode everytime we call it, which
is super expensive if you have a write heavy workload.  We will be updating
the inode when the IO completes and we reserve the space for the inode
update when we reserve space for the write, so there is no chance of loss of
information or enospc issues.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/file.c
fs/btrfs/inode.c