From: Chris Mason Date: Wed, 20 Aug 2014 14:15:33 +0000 (-0700) Subject: Btrfs: fix filemap_flush call in btrfs_file_release X-Git-Tag: omap-fixes-against-v3.17-rc3~41^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6dc45c7a93a011dff6eb9b2ffda59c390c7705a;p=pandora-kernel.git Btrfs: fix filemap_flush call in btrfs_file_release We should only be flushing on close if the file was flagged as needing it during truncate. I broke this with my ordered data vs transaction commit deadlock fix. Thanks to Miao Xie for catching this. Signed-off-by: Chris Mason Reported-by: Miao Xie Reported-by: Fengguang Wu --- Reading git-diff-tree failed