linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel J Blueman <daniel@quora.org>
To: Josef Bacik <josef@redhat.com>, Chris Mason <chris.mason@oracle.com>
Cc: Linux BTRFS <linux-btrfs@vger.kernel.org>
Subject: block_rsv_check EAGAIN vs ENOSPC...
Date: Tue, 24 Apr 2012 23:50:24 +0800	[thread overview]
Message-ID: <CAMVG2stv_CbF=-A=yS40_Q6N5+_fpc2SSJxL3Rga0LQXpc8MSA@mail.gmail.com> (raw)

With 3.4-rc4 under certain workloads, I see btrfs_block_rsv_check
return -ENOSPC.

Since btrfs_block_rsv_check can only return -ENOSPC or 0,
relocation.c:3816 checks for -EAGAIN, which is either redundant or
should be -ENOSPC, which I initially suspected.

Let me know which the behaviour should be and I'll get a patch tested and sent.

Thanks,
  Daniel
-- 
Daniel J Blueman

             reply	other threads:[~2012-04-24 15:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24 15:50 Daniel J Blueman [this message]
2012-04-24 15:54 ` block_rsv_check EAGAIN vs ENOSPC Josef Bacik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMVG2stv_CbF=-A=yS40_Q6N5+_fpc2SSJxL3Rga0LQXpc8MSA@mail.gmail.com' \
    --to=daniel@quora.org \
    --cc=chris.mason@oracle.com \
    --cc=josef@redhat.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).