]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit595f9c0b8ce9609e367a7c9c0ddaa74de06d52fd
treec751a0aeb81809401df1fd87a36376034ef53a87
parenteb031e0a9282ffda97b632a44e7eb45b74a04c72
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