From: Carlos Maiolino <cem@kernel.org>
To: Hengyu Liang <hengyul@cs.unc.edu>
Cc: "Darrick J. Wong" <djwong@kernel.org>,
Christoph Hellwig <hch@lst.de>,
linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] xfs: fix f_bfree underflow in statfs()
Date: Wed, 18 Nov 2026 09:58:55 +0100 [thread overview]
Message-ID: <179499233595.5574.11097163378563687104.b4-ty@kernel.org> (raw)
In-Reply-To: <20261112102018.3922571-1-hengyul@cs.unc.edu>
On Thu, 12 Nov 2026 05:20:18 -0500, Hengyu Liang wrote:
> Commit dd324cb79e54 ("xfs: refactor xfs_fs_statfs") made
> xfs_statfs_data() limit f_bfree with max(0LL, ...) instead of
> max_t(int64_t, 0, ...).
>
> However, the value is an unsigned difference, so max() never picks 0.
> As of now, when the free block counter is below the count of
> unavailable blocks, statfs() reports f_bfree and f_bavail close to 2^64
> instead of 0, and df prints negative sizes.
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: fix f_bfree underflow in statfs()
commit: f0b9e58eee233547e5d77e467ccee89d7a59dd63
Best regards,
--
Carlos Maiolino <cem@kernel.org>
prev parent reply other threads:[~2026-11-18 8:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 10:20 Hengyu Liang
2026-11-12 13:44 ` Christoph Hellwig
2026-11-12 15:07 ` Hengyu Liang
2026-11-18 8:58 ` Carlos Maiolino [this message]
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=179499233595.5574.11097163378563687104.b4-ty@kernel.org \
--to=cem@kernel.org \
--cc=djwong@kernel.org \
--cc=hch@lst.de \
--cc=hengyul@cs.unc.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=stable@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
all inboxes | Powered by JetHome®