From: Sage Weil Date: Fri, 24 Jul 2009 17:17:44 +0000 (-0400) Subject: Btrfs: make flushoncommit mount option correctly wait on ordered_extents X-Git-Tag: v2.6.31-rc5~75^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebecd3d9d2adba144c15f1d35c78e0c26ead1bfd;p=pandora-kernel.git Btrfs: make flushoncommit mount option correctly wait on ordered_extents The commit_transaction call to wait_ordered_extents when snap_pending passes nocow_only=1 to process only NOCOW or PREALLOC extents. This isn't correct for the 'flushoncommit' mode, as it skips extents we just started IO on in start_delalloc_inodes. So, in the flushoncommit case, wait on all ordered extents. Otherwise, only pass the nocow_only flag to wait_ordered_extents if snap_pending. Signed-off-by: Sage Weil Signed-off-by: Chris Mason --- Reading git-diff-tree failed