]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: wait on ordered extents at the last possible moment
authorJosef Bacik <jbacik@fusionio.com>
Fri, 12 Oct 2012 19:27:49 +0000 (15:27 -0400)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 20 Feb 2013 14:37:04 +0000 (09:37 -0500)
commit18e69d5872b28439c0331fae0b5128ba4713572a
treed8d136d90b96f96d63262f8d2eb11680bed80aab
parent75b78f689aa28fe21ce29f9489ee370a0a8d050d
Btrfs: wait on ordered extents at the last possible moment

Since we don't actually copy the extent information from the source tree in
the fast case we don't need to wait for ordered io to be completed in order
to fsync, we just need to wait for the io to be completed.  So when we're
logging our file just attach all of the ordered extents to the log, and then
when the log syncs just wait for IO_DONE on the ordered extents and then
write the super.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/file.c
fs/btrfs/inode.c
fs/btrfs/ordered-data.c
fs/btrfs/ordered-data.h
fs/btrfs/tree-log.c