]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit147e4f6d24f355964cb22c8042047e494a73eb30
treeffe0eb263005f0e749f6a08e5f44763528b15d4d
parente7cdaad6e86b1675b4c29a4197b60a8a1a2177f7
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