xfs: split xfs_buf_rele for cached vs uncached buffers
authorChristoph Hellwig <hch@lst.de>
Thu, 22 Feb 2024 20:41:02 +0000 (12:41 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 22 Feb 2024 20:41:02 +0000 (12:41 -0800)
commit24f755e4854e0fddb78d18f610bf1b5cb61db520
tree534c0cd058d7b487bc33ea3e307d8488335de036
parent6a701eb8fbbb5f500684947883fd77ed0475fa82
xfs: split xfs_buf_rele for cached vs uncached buffers

xfs_buf_rele is a bit confusing because it mixes up handling of normal
cached and the special uncached buffers without much explanation.
Split the handling into two different helpers, and use a clearly named
helper that checks the hash key to distinguish the two cases instead
of checking the pag pointer.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_buf.c