]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 17 Apr 2015 15:59:56 +0000 (11:59 -0400)
commite38530d55b886e87a950ee01a67fca4377c5ec44
tree5c5f6463b8ac9ae4b0c9bb06567f9e6b8736c05c
parenta8c78f8fededab22bf82cdb55464d4d8b58d3ee7
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>
(cherry picked from commit 264ca0f60becac34395f3b42171ad0cc2e53ea6e)
fs/btrfs/extent-tree.c