]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove the flags argument to xfs_buf_get_uncached
authorChristoph Hellwig <hch@lst.de>
Wed, 7 May 2025 22:00:04 +0000 (15:00 -0700)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 28 May 2025 10:16:39 +0000 (12:16 +0200)
Source kernel commit: b3f8f2903b8cd48b0746bf05a40b85ae4b684034

No callers passes flags to xfs_buf_get_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>
libxfs/libxfs_io.h
libxfs/rdwr.c
libxfs/xfs_ag.c
libxlog/xfs_log_recover.c
mkfs/xfs_mkfs.c
repair/rt.c

index 99372eb6d3d13cf0839742cac966fd3c436b2d56..5562e2928254a86ded75d5238bf2768fd64dd52e 100644 (file)
@@ -254,7 +254,7 @@ xfs_buf_hold(struct xfs_buf *bp)
 void xfs_buf_lock(struct xfs_buf *bp);
 void xfs_buf_unlock(struct xfs_buf *bp);
 
-int libxfs_buf_get_uncached(struct xfs_buftarg *targ, size_t bblen, int flags,
+int libxfs_buf_get_uncached(struct xfs_buftarg *targ, size_t bblen,
                struct xfs_buf **bpp);
 int libxfs_buf_read_uncached(struct xfs_buftarg *targ, xfs_daddr_t daddr,
                size_t bblen, int flags, struct xfs_buf **bpp,
index f06763b38bd88c97dd46f2b8301a970b41ff6a0a..5c14dbb5c82b7c4b058616367e281a2bacad1635 100644 (file)
@@ -770,7 +770,6 @@ int
 libxfs_buf_get_uncached(
        struct xfs_buftarg      *targ,
        size_t                  bblen,
-       int                     flags,
        struct xfs_buf          **bpp)
 {
        *bpp = libxfs_getbufr_uncached(targ, XFS_BUF_DADDR_NULL, bblen);
index 095b581a116180d209fc045044d9bf0618a5296a..ea64e9eac589459ce3734bf8058cb22822a7605b 100644 (file)
@@ -299,7 +299,7 @@ xfs_get_aghdr_buf(
        struct xfs_buf          *bp;
        int                     error;
 
-       error = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, 0, &bp);
+       error = xfs_buf_get_uncached(mp->m_ddev_targp, numblks, &bp);
        if (error)
                return error;
 
index 31b11fee9e471530722aaf5c929312b5367e3fa7..275593a3ac9148938a7916d343f169f17e2476c8 100644 (file)
@@ -69,7 +69,7 @@ xlog_get_bp(
                nbblks += log->l_sectBBsize;
        nbblks = round_up(nbblks, log->l_sectBBsize);
 
-       libxfs_buf_get_uncached(log->l_dev, nbblks, 0, &bp);
+       libxfs_buf_get_uncached(log->l_dev, nbblks, &bp);
        return bp;
 }
 
index 9192694dd5955172144fdd4e13037d79c86f42ee..812241c49a5494d10c665c555726c24705ee2ab0 100644 (file)
@@ -5208,7 +5208,7 @@ alloc_write_buf(
        struct xfs_buf          *bp;
        int                     error;
 
-       error = -libxfs_buf_get_uncached(btp, bblen, 0, &bp);
+       error = -libxfs_buf_get_uncached(btp, bblen, &bp);
        if (error) {
                fprintf(stderr, _("Could not get memory for buffer, err=%d\n"),
                                error);
@@ -5595,7 +5595,7 @@ write_rtsb(
        }
 
        error = -libxfs_buf_get_uncached(mp->m_rtdev_targp,
-                               XFS_FSB_TO_BB(mp, 1), 0, &rtsb_bp);
+                               XFS_FSB_TO_BB(mp, 1), &rtsb_bp);
        if (error) {
                fprintf(stderr,
  _("%s: couldn't grab realtime superblock buffer\n"), progname);
index a2478fb635e33b94f02bce7e3de9d70c811ca5e5..1ac2bf6fc454a73c3f0c0e9abac5e4a7c9fd0fff 100644 (file)
@@ -618,7 +618,7 @@ rewrite_rtsb(
  _("couldn't grab primary sb to update realtime sb\n"));
 
        error = -libxfs_buf_get_uncached(mp->m_rtdev_targp,
-                       XFS_FSB_TO_BB(mp, 1), 0, &rtsb_bp);
+                       XFS_FSB_TO_BB(mp, 1), &rtsb_bp);
        if (error)
                do_error(
  _("couldn't grab realtime superblock\n"));