[PATCH 15/18] libxfs: hide libxfs_{get,put}bufr

Darrick J. Wong
2020-02-20T01:44:14Z

From: Darrick J. Wong <darrick.wong@oracle.com>

Hide these two functions because they're not used outside of rdwr.c.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
libxfs/libxfs_io.h | 3 ---
libxfs/rdwr.c | 8 ++++++--
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/libxfs/libxfs_io.h b/libxfs/libxfs_io.h
index 1f6e6d97..7d96c2a3 100644
--- a/libxfs/libxfs_io.h
+++ b/libxfs/libxfs_io.h
@@ -216,9 +216,6 @@ extern void libxfs_bcache_flush(void);
extern int libxfs_bcache_overflowed(void);

/* Buffer (Raw) Interfaces */
-extern xfs_buf_t *libxfs_getbufr(struct xfs_buftarg *, xfs_daddr_t, int);
-extern void libxfs_putbufr(xfs_buf_t *);
-
int libxfs_bwrite(struct xfs_buf *);
extern int libxfs_readbufr(struct xfs_buftarg *, xfs_daddr_t, xfs_buf_t *, int, int);
extern int libxfs_readbufr_map(struct xfs_buftarg *, struct xfs_buf *, int);
diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c
index 9302a698..bab70dfd 100644
--- a/libxfs/rdwr.c
+++ b/libxfs/rdwr.c
@@ -52,6 +52,10 @@
* propagation of stale errors into future buffer operations.
*/

+static struct xfs_buf *libxfs_getbufr(struct xfs_buftarg *btp,
+ xfs_daddr_t daddr, int len);
+static void libxfs_putbufr(struct xfs_buf *bp);
+
#define BDSTRAT_SIZE (256 * 1024)

#define IO_BCOMPARE_CHECK
@@ -666,7 +670,7 @@ __libxfs_getbufr(int blen)
return bp;
}

-xfs_buf_t *
+static xfs_buf_t *
libxfs_getbufr(struct xfs_buftarg *btp, xfs_daddr_t blkno, int bblen)
{
xfs_buf_t *bp;
@@ -1360,7 +1364,7 @@ libxfs_bflush(
return bp->b_error;
}

-void
+static void
libxfs_putbufr(xfs_buf_t *bp)
{
if (bp->b_flags & LIBXFS_B_DIRTY)