]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix missing i_size update
authorJosef Bacik <jbacik@fusionio.com>
Wed, 30 Jan 2013 19:17:31 +0000 (14:17 -0500)
committerJosef Bacik <jbacik@fusionio.com>
Tue, 5 Feb 2013 21:09:14 +0000 (16:09 -0500)
commit42349c525fe3165b4449f2659e9af5ee2a3c37dd
tree131c687a9c4dca34d91a98382d876536de28aae6
parent8e6e328de332706568f8e1c1790d8e7c8f02653b
Btrfs: fix missing i_size update

If we have an ordered extent before the ordered extent we are currently
completing that is after the current disk_i_size we will put our i_size
update into that ordered extent so that we do not expose stale data.  The
problem is that if our disk i_size is updated past the previous ordered
extent we won't update the i_size with the pending i_size update.  So check
the pending i_size update and if its above the current disk i_size we need
to go ahead and try to update.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ordered-data.c