]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: remove the XBF_STALE check from xfs_buf_rele_cached
authorChristoph Hellwig <hch@lst.de>
Mon, 24 Feb 2025 23:48:55 +0000 (15:48 -0800)
committerCarlos Maiolino <cem@kernel.org>
Tue, 25 Feb 2025 12:05:59 +0000 (13:05 +0100)
commit9b47d37496e2669078c8616334e5a7200f91681a
tree851986d900aacf43a6e24e6f1ad8814630cd4e67
parent0d1120b9bbe48a2d119afe0dc64f9c0666745bc8
xfs: remove the XBF_STALE check from xfs_buf_rele_cached

xfs_buf_stale already set b_lru_ref to 0, and thus prevents the buffer
from moving to the LRU.  Remove the duplicate check.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_buf.c