]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix filemap_flush call in btrfs_file_release
authorChris Mason <clm@fb.com>
Wed, 20 Aug 2014 14:15:33 +0000 (07:15 -0700)
committerChris Mason <clm@fb.com>
Thu, 21 Aug 2014 14:55:31 +0000 (07:55 -0700)
commitc251da71e9b9dd8399db3a58378c96b82b96f7bf
tree87b8c5b7982c6063f43015079efa172f1c4caf27
parentb56b478b7073b2346fa69b27ce9cdc42cb3cbb10
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 <clm@fb.com>
Reported-by: Miao Xie <miaox@cn.fujitsu.com>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
fs/btrfs/file.c