Skip to content
Commit f6dc45c7 authored by Chris Mason's avatar Chris Mason
Browse files

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: default avatarChris Mason <clm@fb.com>
Reported-by: default avatarMiao Xie <miaox@cn.fujitsu.com>
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
parent 38c1c2e4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment