]> www.infradead.org Git - users/hch/xfs.git/commit
xfs: remove the XBF_STALE check from xfs_buf_rele_cached xfs-buf-simplification
authorChristoph Hellwig <hch@lst.de>
Sun, 12 Jan 2025 06:23:08 +0000 (07:23 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 17 Feb 2025 09:27:59 +0000 (10:27 +0100)
commitf80aa548eb899203b1dfa92ed495c88ff70e427f
treeea9cf8fa9a058c9d3bc1a09b7bbb7320b248e0d5
parentd88ca90453297c0c6790399b8ba5b9d4a62fd868
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>
fs/xfs/xfs_buf.c