]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - fs/btrfs/extent-tree.c
btrfs: Adjust commit-transaction condition to avoid NO_SPACE more
authorZhao Lei <zhaolei@cn.fujitsu.com>
Tue, 17 Feb 2015 09:25:51 +0000 (17:25 +0800)
committerChris Mason <clm@fb.com>
Mon, 13 Apr 2015 14:27:24 +0000 (07:27 -0700)
commit264ca0f60becac34395f3b42171ad0cc2e53ea6e
treeffe0eb263005f0e749f6a08e5f44763528b15d4d
parentf2ab76188ec185dde84e7fe7c533ef2f5d668a32
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: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/extent-tree.c