Skip to content
Commit 264ca0f6 authored by Zhao Lei's avatar Zhao Lei Committed by Chris Mason
Browse files

btrfs: Adjust commit-transaction condition to avoid NO_SPACE more



If we have any chance to make a successful write, we should not give up.

This patch adjust commit-transaction condition from:
  pinned >= wanted
to
  left + pinned >= wanted

Signed-off-by: default avatarZhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent f2ab7618
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