xfs: remove the flags argument to xfs_buf_read_uncached

No callers passes flags to xfs_buf_read_uncached, which makes sense
given that the flags apply to behavior not used for uncached buffers.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
Christoph Hellwig 2025-03-17 06:48:35 +01:00 committed by Carlos Maiolino
parent 44e1f90b16
commit 8d54b48fef
5 changed files with 8 additions and 9 deletions

View File

@ -802,7 +802,6 @@ xfs_buf_read_uncached(
struct xfs_buftarg *target, struct xfs_buftarg *target,
xfs_daddr_t daddr, xfs_daddr_t daddr,
size_t numblks, size_t numblks,
xfs_buf_flags_t flags,
struct xfs_buf **bpp, struct xfs_buf **bpp,
const struct xfs_buf_ops *ops) const struct xfs_buf_ops *ops)
{ {
@ -811,7 +810,7 @@ xfs_buf_read_uncached(
*bpp = NULL; *bpp = NULL;
error = xfs_buf_get_uncached(target, numblks, flags, &bp); error = xfs_buf_get_uncached(target, numblks, 0, &bp);
if (error) if (error)
return error; return error;

View File

@ -275,7 +275,7 @@ xfs_buf_readahead(
int xfs_buf_get_uncached(struct xfs_buftarg *target, size_t numblks, int xfs_buf_get_uncached(struct xfs_buftarg *target, size_t numblks,
xfs_buf_flags_t flags, struct xfs_buf **bpp); xfs_buf_flags_t flags, struct xfs_buf **bpp);
int xfs_buf_read_uncached(struct xfs_buftarg *target, xfs_daddr_t daddr, int xfs_buf_read_uncached(struct xfs_buftarg *target, xfs_daddr_t daddr,
size_t numblks, xfs_buf_flags_t flags, struct xfs_buf **bpp, size_t numblks, struct xfs_buf **bpp,
const struct xfs_buf_ops *ops); const struct xfs_buf_ops *ops);
int _xfs_buf_read(struct xfs_buf *bp); int _xfs_buf_read(struct xfs_buf *bp);
void xfs_buf_hold(struct xfs_buf *bp); void xfs_buf_hold(struct xfs_buf *bp);

View File

@ -111,7 +111,7 @@ xfs_growfs_data_private(
if (nb > mp->m_sb.sb_dblocks) { if (nb > mp->m_sb.sb_dblocks) {
error = xfs_buf_read_uncached(mp->m_ddev_targp, error = xfs_buf_read_uncached(mp->m_ddev_targp,
XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1), XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1),
XFS_FSS_TO_BB(mp, 1), 0, &bp, NULL); XFS_FSS_TO_BB(mp, 1), &bp, NULL);
if (error) if (error)
return error; return error;
xfs_buf_relse(bp); xfs_buf_relse(bp);

View File

@ -186,7 +186,7 @@ xfs_readsb(
*/ */
reread: reread:
error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR, error = xfs_buf_read_uncached(mp->m_ddev_targp, XFS_SB_DADDR,
BTOBB(sector_size), 0, &bp, buf_ops); BTOBB(sector_size), &bp, buf_ops);
if (error) { if (error) {
if (loud) if (loud)
xfs_warn(mp, "SB validate failed with error %d.", error); xfs_warn(mp, "SB validate failed with error %d.", error);
@ -414,7 +414,7 @@ xfs_check_sizes(
} }
error = xfs_buf_read_uncached(mp->m_ddev_targp, error = xfs_buf_read_uncached(mp->m_ddev_targp,
d - XFS_FSS_TO_BB(mp, 1), d - XFS_FSS_TO_BB(mp, 1),
XFS_FSS_TO_BB(mp, 1), 0, &bp, NULL); XFS_FSS_TO_BB(mp, 1), &bp, NULL);
if (error) { if (error) {
xfs_warn(mp, "last sector read failed"); xfs_warn(mp, "last sector read failed");
return error; return error;
@ -431,7 +431,7 @@ xfs_check_sizes(
} }
error = xfs_buf_read_uncached(mp->m_logdev_targp, error = xfs_buf_read_uncached(mp->m_logdev_targp,
d - XFS_FSB_TO_BB(mp, 1), d - XFS_FSB_TO_BB(mp, 1),
XFS_FSB_TO_BB(mp, 1), 0, &bp, NULL); XFS_FSB_TO_BB(mp, 1), &bp, NULL);
if (error) { if (error) {
xfs_warn(mp, "log device read failed"); xfs_warn(mp, "log device read failed");
return error; return error;

View File

@ -1350,7 +1350,7 @@ xfs_rt_check_size(
error = xfs_buf_read_uncached(mp->m_rtdev_targp, error = xfs_buf_read_uncached(mp->m_rtdev_targp,
XFS_FSB_TO_BB(mp, mp->m_sb.sb_rtstart) + daddr, XFS_FSB_TO_BB(mp, mp->m_sb.sb_rtstart) + daddr,
XFS_FSB_TO_BB(mp, 1), 0, &bp, NULL); XFS_FSB_TO_BB(mp, 1), &bp, NULL);
if (error) if (error)
xfs_warn(mp, "cannot read last RT device sector (%lld)", xfs_warn(mp, "cannot read last RT device sector (%lld)",
last_block); last_block);
@ -1511,7 +1511,7 @@ xfs_rtmount_readsb(
/* m_blkbb_log is not set up yet */ /* m_blkbb_log is not set up yet */
error = xfs_buf_read_uncached(mp->m_rtdev_targp, XFS_RTSB_DADDR, error = xfs_buf_read_uncached(mp->m_rtdev_targp, XFS_RTSB_DADDR,
mp->m_sb.sb_blocksize >> BBSHIFT, 0, &bp, mp->m_sb.sb_blocksize >> BBSHIFT, &bp,
&xfs_rtsb_buf_ops); &xfs_rtsb_buf_ops);
if (error) { if (error) {
xfs_warn(mp, "rt sb validate failed with error %d.", error); xfs_warn(mp, "rt sb validate failed with error %d.", error);