diff options
author | Dave Chinner <dchinner@redhat.com> | 2021-01-07 15:59:18 -0500 |
---|---|---|
committer | Eric Sandeen <sandeen@sandeen.net> | 2021-01-07 15:59:18 -0500 |
commit | 167137fe533c7dd8d51ee0661faa2ee408fb673e (patch) | |
tree | cba67d938b648dafc490a23fac7eccc0c1232021 | |
parent | d3ed327c9d4a96882fbdc7bd5f3c404e0f79b0ef (diff) | |
download | xfsprogs-dev-libxfs-5.11-sync.tar.gz |
xfs: remove xfs_buf_t typedeflibxfs-5.11-sync
Source kernel commit: e82226138b20d4f638426413e83c6b5db532c6a2
Prepare for kernel xfs_buf alignment by getting rid of the
xfs_buf_t typedef from userspace.
[darrick: This patch is a port of a userspace patch removing the
xfs_buf_t typedef in preparation to make the userspace xfs_buf code
behave more like its kernel counterpart.]
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
-rw-r--r-- | copy/xfs_copy.c | 2 | ||||
-rw-r--r-- | include/libxfs.h | 2 | ||||
-rw-r--r-- | include/libxlog.h | 6 | ||||
-rw-r--r-- | libxfs/init.c | 2 | ||||
-rw-r--r-- | libxfs/libxfs_io.h | 6 | ||||
-rw-r--r-- | libxfs/libxfs_priv.h | 4 | ||||
-rw-r--r-- | libxfs/logitem.c | 4 | ||||
-rw-r--r-- | libxfs/rdwr.c | 26 | ||||
-rw-r--r-- | libxfs/trans.c | 16 | ||||
-rw-r--r-- | libxfs/util.c | 2 | ||||
-rw-r--r-- | libxfs/xfs_alloc.c | 16 | ||||
-rw-r--r-- | libxfs/xfs_bmap.c | 6 | ||||
-rw-r--r-- | libxfs/xfs_btree.c | 10 | ||||
-rw-r--r-- | libxfs/xfs_ialloc.c | 4 | ||||
-rw-r--r-- | libxfs/xfs_rtbitmap.c | 22 | ||||
-rw-r--r-- | libxlog/xfs_log_recover.c | 12 | ||||
-rw-r--r-- | logprint/log_print_all.c | 2 | ||||
-rw-r--r-- | mkfs/proto.c | 2 | ||||
-rw-r--r-- | mkfs/xfs_mkfs.c | 2 | ||||
-rw-r--r-- | repair/agheader.c | 2 | ||||
-rw-r--r-- | repair/attr_repair.c | 4 | ||||
-rw-r--r-- | repair/da_util.h | 2 | ||||
-rw-r--r-- | repair/dino_chunks.c | 8 | ||||
-rw-r--r-- | repair/incore.h | 2 | ||||
-rw-r--r-- | repair/phase5.c | 2 | ||||
-rw-r--r-- | repair/phase6.c | 4 | ||||
-rw-r--r-- | repair/prefetch.c | 12 | ||||
-rw-r--r-- | repair/rt.c | 4 | ||||
-rw-r--r-- | repair/scan.c | 4 | ||||
-rw-r--r-- | repair/xfs_repair.c | 2 |
30 files changed, 96 insertions, 96 deletions
diff --git a/copy/xfs_copy.c b/copy/xfs_copy.c index 38a20d37a0..fc7d225fe6 100644 --- a/copy/xfs_copy.c +++ b/copy/xfs_copy.c @@ -569,7 +569,7 @@ main(int argc, char **argv) xfs_mount_t *mp; xfs_mount_t mbuf; struct xlog xlog; - xfs_buf_t *sbp; + struct xfs_buf *sbp; xfs_sb_t *sb; xfs_agnumber_t num_ags, agno; xfs_agblock_t bno; diff --git a/include/libxfs.h b/include/libxfs.h index ad077eaa0f..bc07655e64 100644 --- a/include/libxfs.h +++ b/include/libxfs.h @@ -104,7 +104,7 @@ typedef struct libxfs_xinit { int risfile; /* realtime "subvolume" is a reg file */ int rcreat; /* try to create realtime subvolume */ int setblksize; /* attempt to set device blksize */ - int usebuflock; /* lock xfs_buf_t's - for MT usage */ + int usebuflock; /* lock xfs_buf's - for MT usage */ /* output results */ dev_t ddev; /* device for data subvolume */ dev_t logdev; /* device for log subvolume */ diff --git a/include/libxlog.h b/include/libxlog.h index 89e0ed6690..adaa9963cd 100644 --- a/include/libxlog.h +++ b/include/libxlog.h @@ -76,12 +76,12 @@ extern int xlog_is_dirty(struct xfs_mount *, struct xlog *, libxfs_init_t *, int); extern struct xfs_buf *xlog_get_bp(struct xlog *, int); extern int xlog_bread(struct xlog *log, xfs_daddr_t blk_no, int nbblks, - xfs_buf_t *bp, char **offset); + struct xfs_buf *bp, char **offset); extern int xlog_bread_noalign(struct xlog *log, xfs_daddr_t blk_no, - int nbblks, xfs_buf_t *bp); + int nbblks, struct xfs_buf *bp); extern int xlog_find_zeroed(struct xlog *log, xfs_daddr_t *blk_no); -extern int xlog_find_cycle_start(struct xlog *log, xfs_buf_t *bp, +extern int xlog_find_cycle_start(struct xlog *log, struct xfs_buf *bp, xfs_daddr_t first_blk, xfs_daddr_t *last_blk, uint cycle); extern int xlog_find_tail(struct xlog *log, xfs_daddr_t *head_blk, diff --git a/libxfs/init.c b/libxfs/init.c index bd176b50bf..9fe13b8d9d 100644 --- a/libxfs/init.c +++ b/libxfs/init.c @@ -30,7 +30,7 @@ char *progname = "libxfs"; /* default, changed by each tool */ struct cache *libxfs_bcache; /* global buffer cache */ int libxfs_bhash_size; /* #buckets in bcache */ -int use_xfs_buf_lock; /* global flag: use xfs_buf_t locks for MT */ +int use_xfs_buf_lock; /* global flag: use xfs_buf locks for MT */ /* * dev_map - map open devices to fd. diff --git a/libxfs/libxfs_io.h b/libxfs/libxfs_io.h index 1eccedfc5f..c80e2d59ad 100644 --- a/libxfs/libxfs_io.h +++ b/libxfs/libxfs_io.h @@ -57,7 +57,7 @@ struct xfs_buf_ops { xfs_failaddr_t (*verify_struct)(struct xfs_buf *); }; -typedef struct xfs_buf { +struct xfs_buf { struct cache_node b_node; unsigned int b_flags; xfs_daddr_t b_bn; @@ -78,7 +78,7 @@ typedef struct xfs_buf { struct xfs_buf_map __b_map; int b_nmaps; struct list_head b_list; -} xfs_buf_t; +}; bool xfs_verify_magic(struct xfs_buf *bp, __be32 dmagic); bool xfs_verify_magic16(struct xfs_buf *bp, __be16 dmagic); @@ -163,7 +163,7 @@ extern int libxfs_bcache_overflowed(void); /* Buffer (Raw) Interfaces */ int libxfs_bwrite(struct xfs_buf *bp); -extern int libxfs_readbufr(struct xfs_buftarg *, xfs_daddr_t, xfs_buf_t *, int, int); +extern int libxfs_readbufr(struct xfs_buftarg *, xfs_daddr_t, struct xfs_buf *, int, int); extern int libxfs_readbufr_map(struct xfs_buftarg *, struct xfs_buf *, int); extern int libxfs_device_zero(struct xfs_buftarg *, xfs_daddr_t, uint); diff --git a/libxfs/libxfs_priv.h b/libxfs/libxfs_priv.h index e92269f0bd..f1b1ca1074 100644 --- a/libxfs/libxfs_priv.h +++ b/libxfs/libxfs_priv.h @@ -663,10 +663,10 @@ int xfs_rtmodify_range(struct xfs_mount *mp, struct xfs_trans *tp, xfs_rtblock_t start, xfs_extlen_t len, int val); int xfs_rtmodify_summary_int(struct xfs_mount *mp, struct xfs_trans *tp, int log, xfs_rtblock_t bbno, int delta, - xfs_buf_t **rbpp, xfs_fsblock_t *rsb, + struct xfs_buf **rbpp, xfs_fsblock_t *rsb, xfs_suminfo_t *sum); int xfs_rtmodify_summary(struct xfs_mount *mp, struct xfs_trans *tp, int log, - xfs_rtblock_t bbno, int delta, xfs_buf_t **rbpp, + xfs_rtblock_t bbno, int delta, struct xfs_buf **rbpp, xfs_fsblock_t *rsb); int xfs_rtfree_range(struct xfs_mount *mp, struct xfs_trans *tp, xfs_rtblock_t start, xfs_extlen_t len, diff --git a/libxfs/logitem.c b/libxfs/logitem.c index 43a98f2841..4d4e8080df 100644 --- a/libxfs/logitem.c +++ b/libxfs/logitem.c @@ -27,7 +27,7 @@ kmem_zone_t *xfs_ili_zone; /* inode log item zone */ * Check to see if a buffer matching the given parameters is already * a part of the given transaction. */ -xfs_buf_t * +struct xfs_buf * xfs_trans_buf_item_match( xfs_trans_t *tp, struct xfs_buftarg *btp, @@ -68,7 +68,7 @@ xfs_trans_buf_item_match( */ void xfs_buf_item_init( - xfs_buf_t *bp, + struct xfs_buf *bp, xfs_mount_t *mp) { xfs_log_item_t *lip; diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c index 2e0384017f..ac783ce380 100644 --- a/libxfs/rdwr.c +++ b/libxfs/rdwr.c @@ -223,7 +223,7 @@ libxfs_bcompare(struct cache_node *node, cache_key_t key) } static void -__initbuf(xfs_buf_t *bp, struct xfs_buftarg *btp, xfs_daddr_t bno, +__initbuf(struct xfs_buf *bp, struct xfs_buftarg *btp, xfs_daddr_t bno, unsigned int bytes) { bp->b_flags = 0; @@ -257,14 +257,14 @@ __initbuf(xfs_buf_t *bp, struct xfs_buftarg *btp, xfs_daddr_t bno, } static void -libxfs_initbuf(xfs_buf_t *bp, struct xfs_buftarg *btp, xfs_daddr_t bno, +libxfs_initbuf(struct xfs_buf *bp, struct xfs_buftarg *btp, xfs_daddr_t bno, unsigned int bytes) { __initbuf(bp, btp, bno, bytes); } static void -libxfs_initbuf_map(xfs_buf_t *bp, struct xfs_buftarg *btp, +libxfs_initbuf_map(struct xfs_buf *bp, struct xfs_buftarg *btp, struct xfs_buf_map *map, int nmaps) { unsigned int bytes = 0; @@ -292,10 +292,10 @@ libxfs_initbuf_map(xfs_buf_t *bp, struct xfs_buftarg *btp, bp->b_flags |= LIBXFS_B_DISCONTIG; } -static xfs_buf_t * +static struct xfs_buf * __libxfs_getbufr(int blen) { - xfs_buf_t *bp; + struct xfs_buf *bp; /* * first look for a buffer that can be used as-is, @@ -313,7 +313,7 @@ __libxfs_getbufr(int blen) } if (&bp->b_node.cn_mru == &xfs_buf_freelist.cm_list) { bp = list_entry(xfs_buf_freelist.cm_list.next, - xfs_buf_t, b_node.cn_mru); + struct xfs_buf, b_node.cn_mru); list_del_init(&bp->b_node.cn_mru); free(bp->b_addr); bp->b_addr = NULL; @@ -331,10 +331,10 @@ __libxfs_getbufr(int blen) return bp; } -static xfs_buf_t * +static struct xfs_buf * libxfs_getbufr(struct xfs_buftarg *btp, xfs_daddr_t blkno, int bblen) { - xfs_buf_t *bp; + struct xfs_buf *bp; int blen = BBTOB(bblen); bp =__libxfs_getbufr(blen); @@ -343,11 +343,11 @@ libxfs_getbufr(struct xfs_buftarg *btp, xfs_daddr_t blkno, int bblen) return bp; } -static xfs_buf_t * +static struct xfs_buf * libxfs_getbufr_map(struct xfs_buftarg *btp, xfs_daddr_t blkno, int bblen, struct xfs_buf_map *map, int nmaps) { - xfs_buf_t *bp; + struct xfs_buf *bp; int blen = BBTOB(bblen); if (!map || !nmaps) { @@ -574,7 +574,7 @@ __read_buf(int fd, void *buf, int len, off64_t offset, int flags) } int -libxfs_readbufr(struct xfs_buftarg *btp, xfs_daddr_t blkno, xfs_buf_t *bp, +libxfs_readbufr(struct xfs_buftarg *btp, xfs_daddr_t blkno, struct xfs_buf *bp, int len, int flags) { int fd = libxfs_device_to_fd(btp->bt_bdev); @@ -915,7 +915,7 @@ libxfs_bulkrelse( struct cache *cache, struct list_head *list) { - xfs_buf_t *bp; + struct xfs_buf *bp; int count = 0; if (list_empty(list)) @@ -941,7 +941,7 @@ void libxfs_bcache_free(void) { struct list_head *cm_list; - xfs_buf_t *bp, *next; + struct xfs_buf *bp, *next; cm_list = &xfs_buf_freelist.cm_list; list_for_each_entry_safe(bp, next, cm_list, b_node.cn_mru) { diff --git a/libxfs/trans.c b/libxfs/trans.c index bc4af26c09..a4a5cbe073 100644 --- a/libxfs/trans.c +++ b/libxfs/trans.c @@ -396,7 +396,7 @@ libxfs_trans_bjoin( void libxfs_trans_bhold_release( xfs_trans_t *tp, - xfs_buf_t *bp) + struct xfs_buf *bp) { struct xfs_buf_log_item *bip = bp->b_log_item; @@ -462,7 +462,7 @@ libxfs_trans_get_buf_map( return 0; } -xfs_buf_t * +struct xfs_buf * libxfs_trans_getsb( struct xfs_trans *tp) { @@ -605,7 +605,7 @@ libxfs_trans_brelse( void libxfs_trans_bhold( xfs_trans_t *tp, - xfs_buf_t *bp) + struct xfs_buf *bp) { struct xfs_buf_log_item *bip = bp->b_log_item; @@ -662,7 +662,7 @@ libxfs_trans_log_buf( void libxfs_trans_binval( xfs_trans_t *tp, - xfs_buf_t *bp) + struct xfs_buf *bp) { struct xfs_buf_log_item *bip = bp->b_log_item; @@ -696,7 +696,7 @@ libxfs_trans_binval( void libxfs_trans_inode_alloc_buf( xfs_trans_t *tp, - xfs_buf_t *bp) + struct xfs_buf *bp) { struct xfs_buf_log_item *bip = bp->b_log_item; @@ -813,7 +813,7 @@ static void inode_item_done( struct xfs_inode_log_item *iip) { - xfs_buf_t *bp; + struct xfs_buf *bp; int error; ASSERT(iip->ili_inode != NULL); @@ -849,7 +849,7 @@ static void buf_item_done( xfs_buf_log_item_t *bip) { - xfs_buf_t *bp; + struct xfs_buf *bp; int hold; extern kmem_zone_t *xfs_buf_item_zone; @@ -893,7 +893,7 @@ static void buf_item_unlock( xfs_buf_log_item_t *bip) { - xfs_buf_t *bp = bip->bli_buf; + struct xfs_buf *bp = bip->bli_buf; uint hold; /* Clear the buffer's association with this transaction. */ diff --git a/libxfs/util.c b/libxfs/util.c index 2ee9337ad9..1025ad2462 100644 --- a/libxfs/util.c +++ b/libxfs/util.c @@ -339,7 +339,7 @@ libxfs_init_new_inode( int libxfs_iflush_int( xfs_inode_t *ip, - xfs_buf_t *bp) + struct xfs_buf *bp) { struct xfs_inode_log_item *iip; xfs_dinode_t *dip; diff --git a/libxfs/xfs_alloc.c b/libxfs/xfs_alloc.c index 92f61fae4a..0bef9f0d8b 100644 --- a/libxfs/xfs_alloc.c +++ b/libxfs/xfs_alloc.c @@ -686,9 +686,9 @@ xfs_alloc_read_agfl( xfs_mount_t *mp, /* mount point structure */ xfs_trans_t *tp, /* transaction pointer */ xfs_agnumber_t agno, /* allocation group number */ - xfs_buf_t **bpp) /* buffer for the ag free block array */ + struct xfs_buf **bpp) /* buffer for the ag free block array */ { - xfs_buf_t *bp; /* return value */ + struct xfs_buf *bp; /* return value */ int error; ASSERT(agno != NULLAGNUMBER); @@ -2643,12 +2643,12 @@ out_no_agbp: int /* error */ xfs_alloc_get_freelist( xfs_trans_t *tp, /* transaction pointer */ - xfs_buf_t *agbp, /* buffer containing the agf structure */ + struct xfs_buf *agbp, /* buffer containing the agf structure */ xfs_agblock_t *bnop, /* block address retrieved from freelist */ int btreeblk) /* destination is a AGF btree */ { struct xfs_agf *agf = agbp->b_addr; - xfs_buf_t *agflbp;/* buffer for a.g. freelist structure */ + struct xfs_buf *agflbp;/* buffer for a.g. freelist structure */ xfs_agblock_t bno; /* block number returned */ __be32 *agfl_bno; int error; @@ -2707,7 +2707,7 @@ xfs_alloc_get_freelist( void xfs_alloc_log_agf( xfs_trans_t *tp, /* transaction pointer */ - xfs_buf_t *bp, /* buffer for a.g. freelist header */ + struct xfs_buf *bp, /* buffer for a.g. freelist header */ int fields) /* mask of fields to be logged (XFS_AGF_...) */ { int first; /* first byte offset */ @@ -2753,7 +2753,7 @@ xfs_alloc_pagf_init( xfs_agnumber_t agno, /* allocation group number */ int flags) /* XFS_ALLOC_FLAGS_... */ { - xfs_buf_t *bp; + struct xfs_buf *bp; int error; error = xfs_alloc_read_agf(mp, tp, agno, flags, &bp); @@ -2768,8 +2768,8 @@ xfs_alloc_pagf_init( int /* error */ xfs_alloc_put_freelist( xfs_trans_t *tp, /* transaction pointer */ - xfs_buf_t *agbp, /* buffer for a.g. freelist header */ - xfs_buf_t *agflbp,/* buffer for a.g. free block array */ + struct xfs_buf *agbp, /* buffer for a.g. freelist header */ + struct xfs_buf *agflbp,/* buffer for a.g. free block array */ xfs_agblock_t bno, /* block being freed */ int btreeblk) /* block came from a AGF btree */ { diff --git a/libxfs/xfs_bmap.c b/libxfs/xfs_bmap.c index 458085e347..1e53cbdd08 100644 --- a/libxfs/xfs_bmap.c +++ b/libxfs/xfs_bmap.c @@ -314,7 +314,7 @@ xfs_bmap_check_leaf_extents( struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); struct xfs_btree_block *block; /* current btree block */ xfs_fsblock_t bno; /* block # of "block" */ - xfs_buf_t *bp; /* buffer for "block" */ + struct xfs_buf *bp; /* buffer for "block" */ int error; /* error return value */ xfs_extnum_t i=0, j; /* index into the extents list */ int level; /* btree level, for checking */ @@ -585,7 +585,7 @@ xfs_bmap_btree_to_extents( struct xfs_btree_block *rblock = ifp->if_broot; struct xfs_btree_block *cblock;/* child btree block */ xfs_fsblock_t cbno; /* child block number */ - xfs_buf_t *cbp; /* child block's buffer */ + struct xfs_buf *cbp; /* child block's buffer */ int error; /* error return value */ __be64 *pp; /* ptr to block address */ struct xfs_owner_info oinfo; @@ -823,7 +823,7 @@ xfs_bmap_local_to_extents( int flags; /* logging flags returned */ struct xfs_ifork *ifp; /* inode fork pointer */ xfs_alloc_arg_t args; /* allocation arguments */ - xfs_buf_t *bp; /* buffer for extent block */ + struct xfs_buf *bp; /* buffer for extent block */ struct xfs_bmbt_irec rec; struct xfs_iext_cursor icur; diff --git a/libxfs/xfs_btree.c b/libxfs/xfs_btree.c index da122d88d3..a2356df6a0 100644 --- a/libxfs/xfs_btree.c +++ b/libxfs/xfs_btree.c @@ -394,7 +394,7 @@ xfs_btree_dup_cursor( xfs_btree_cur_t *cur, /* input cursor */ xfs_btree_cur_t **ncur) /* output cursor */ { - xfs_buf_t *bp; /* btree block's buffer pointer */ + struct xfs_buf *bp; /* btree block's buffer pointer */ int error; /* error return value */ int i; /* level number of btree block */ xfs_mount_t *mp; /* mount structure for filesystem */ @@ -698,7 +698,7 @@ xfs_btree_firstrec( int level) /* level to change */ { struct xfs_btree_block *block; /* generic btree block pointer */ - xfs_buf_t *bp; /* buffer containing block */ + struct xfs_buf *bp; /* buffer containing block */ /* * Get the block pointer for this level. @@ -728,7 +728,7 @@ xfs_btree_lastrec( int level) /* level to change */ { struct xfs_btree_block *block; /* generic btree block pointer */ - xfs_buf_t *bp; /* buffer containing block */ + struct xfs_buf *bp; /* buffer containing block */ /* * Get the block pointer for this level. @@ -990,7 +990,7 @@ STATIC void xfs_btree_setbuf( xfs_btree_cur_t *cur, /* btree cursor */ int lev, /* level in btree */ - xfs_buf_t *bp) /* new buffer to set */ + struct xfs_buf *bp) /* new buffer to set */ { struct xfs_btree_block *b; /* btree block */ @@ -1633,7 +1633,7 @@ xfs_btree_decrement( int *stat) /* success/failure */ { struct xfs_btree_block *block; - xfs_buf_t *bp; + struct xfs_buf *bp; int error; /* error return value */ int lev; union xfs_btree_ptr ptr; diff --git a/libxfs/xfs_ialloc.c b/libxfs/xfs_ialloc.c index 26a3d4b27c..c8e2125db8 100644 --- a/libxfs/xfs_ialloc.c +++ b/libxfs/xfs_ialloc.c @@ -2454,7 +2454,7 @@ out_map: void xfs_ialloc_log_agi( xfs_trans_t *tp, /* transaction pointer */ - xfs_buf_t *bp, /* allocation group header buffer */ + struct xfs_buf *bp, /* allocation group header buffer */ int fields) /* bitmask of fields to log */ { int first; /* first byte number */ @@ -2675,7 +2675,7 @@ xfs_ialloc_pagi_init( xfs_trans_t *tp, /* transaction pointer */ xfs_agnumber_t agno) /* allocation group number */ { - xfs_buf_t *bp = NULL; + struct xfs_buf *bp = NULL; int error; error = xfs_ialloc_read_agi(mp, tp, agno, &bp); diff --git a/libxfs/xfs_rtbitmap.c b/libxfs/xfs_rtbitmap.c index dcb94f2059..db3e2449fd 100644 --- a/libxfs/xfs_rtbitmap.c +++ b/libxfs/xfs_rtbitmap.c @@ -54,9 +54,9 @@ xfs_rtbuf_get( xfs_trans_t *tp, /* transaction pointer */ xfs_rtblock_t block, /* block number in bitmap or summary */ int issum, /* is summary not bitmap */ - xfs_buf_t **bpp) /* output: buffer for the block */ + struct xfs_buf **bpp) /* output: buffer for the block */ { - xfs_buf_t *bp; /* block buffer, result */ + struct xfs_buf *bp; /* block buffer, result */ xfs_inode_t *ip; /* bitmap or summary inode */ xfs_bmbt_irec_t map; int nmap = 1; @@ -99,7 +99,7 @@ xfs_rtfind_back( xfs_rtword_t *b; /* current word in buffer */ int bit; /* bit number in the word */ xfs_rtblock_t block; /* bitmap block number */ - xfs_buf_t *bp; /* buf for the block */ + struct xfs_buf *bp; /* buf for the block */ xfs_rtword_t *bufp; /* starting word in buffer */ int error; /* error value */ xfs_rtblock_t firstbit; /* first useful bit in the word */ @@ -274,7 +274,7 @@ xfs_rtfind_forw( xfs_rtword_t *b; /* current word in buffer */ int bit; /* bit number in the word */ xfs_rtblock_t block; /* bitmap block number */ - xfs_buf_t *bp; /* buf for the block */ + struct xfs_buf *bp; /* buf for the block */ xfs_rtword_t *bufp; /* starting word in buffer */ int error; /* error value */ xfs_rtblock_t i; /* current bit number rel. to start */ @@ -445,11 +445,11 @@ xfs_rtmodify_summary_int( int log, /* log2 of extent size */ xfs_rtblock_t bbno, /* bitmap block number */ int delta, /* change to make to summary info */ - xfs_buf_t **rbpp, /* in/out: summary block buffer */ + struct xfs_buf **rbpp, /* in/out: summary block buffer */ xfs_fsblock_t *rsb, /* in/out: summary block number */ xfs_suminfo_t *sum) /* out: summary info for this block */ { - xfs_buf_t *bp; /* buffer for the summary block */ + struct xfs_buf *bp; /* buffer for the summary block */ int error; /* error value */ xfs_fsblock_t sb; /* summary fsblock */ int so; /* index into the summary file */ @@ -515,7 +515,7 @@ xfs_rtmodify_summary( int log, /* log2 of extent size */ xfs_rtblock_t bbno, /* bitmap block number */ int delta, /* change to make to summary info */ - xfs_buf_t **rbpp, /* in/out: summary block buffer */ + struct xfs_buf **rbpp, /* in/out: summary block buffer */ xfs_fsblock_t *rsb) /* in/out: summary block number */ { return xfs_rtmodify_summary_int(mp, tp, log, bbno, @@ -537,7 +537,7 @@ xfs_rtmodify_range( xfs_rtword_t *b; /* current word in buffer */ int bit; /* bit number in the word */ xfs_rtblock_t block; /* bitmap block number */ - xfs_buf_t *bp; /* buf for the block */ + struct xfs_buf *bp; /* buf for the block */ xfs_rtword_t *bufp; /* starting word in buffer */ int error; /* error value */ xfs_rtword_t *first; /* first used word in the buffer */ @@ -688,7 +688,7 @@ xfs_rtfree_range( xfs_trans_t *tp, /* transaction pointer */ xfs_rtblock_t start, /* starting block to free */ xfs_extlen_t len, /* length to free */ - xfs_buf_t **rbpp, /* in/out: summary block buffer */ + struct xfs_buf **rbpp, /* in/out: summary block buffer */ xfs_fsblock_t *rsb) /* in/out: summary block number */ { xfs_rtblock_t end; /* end of the freed extent */ @@ -771,7 +771,7 @@ xfs_rtcheck_range( xfs_rtword_t *b; /* current word in buffer */ int bit; /* bit number in the word */ xfs_rtblock_t block; /* bitmap block number */ - xfs_buf_t *bp; /* buf for the block */ + struct xfs_buf *bp; /* buf for the block */ xfs_rtword_t *bufp; /* starting word in buffer */ int error; /* error value */ xfs_rtblock_t i; /* current bit number rel. to start */ @@ -967,7 +967,7 @@ xfs_rtfree_extent( int error; /* error value */ xfs_mount_t *mp; /* file system mount structure */ xfs_fsblock_t sb; /* summary file block number */ - xfs_buf_t *sumbp = NULL; /* summary file block buffer */ + struct xfs_buf *sumbp = NULL; /* summary file block buffer */ mp = tp->t_mountp; diff --git a/libxlog/xfs_log_recover.c b/libxlog/xfs_log_recover.c index 8fb439db62..40d18b88f0 100644 --- a/libxlog/xfs_log_recover.c +++ b/libxlog/xfs_log_recover.c @@ -227,7 +227,7 @@ xlog_find_verify_cycle( { xfs_daddr_t i, j; uint cycle; - xfs_buf_t *bp; + struct xfs_buf *bp; int bufblks; char *buf = NULL; int error = 0; @@ -294,7 +294,7 @@ xlog_find_verify_log_record( int extra_bblks) { xfs_daddr_t i; - xfs_buf_t *bp; + struct xfs_buf *bp; char *offset = NULL; xlog_rec_header_t *head = NULL; int error = 0; @@ -401,7 +401,7 @@ xlog_find_head( struct xlog *log, xfs_daddr_t *return_head_blk) { - xfs_buf_t *bp; + struct xfs_buf *bp; char *offset; xfs_daddr_t new_blk, first_blk, start_blk, last_blk, head_blk; int num_scan_bblks; @@ -676,7 +676,7 @@ xlog_find_tail( xlog_rec_header_t *rhead; xlog_op_header_t *op_head; char *offset = NULL; - xfs_buf_t *bp; + struct xfs_buf *bp; int error, i, found; xfs_daddr_t umount_data_blk; xfs_daddr_t after_umount_blk; @@ -882,7 +882,7 @@ xlog_find_zeroed( struct xlog *log, xfs_daddr_t *blk_no) { - xfs_buf_t *bp; + struct xfs_buf *bp; char *offset; uint first_cycle, last_cycle; xfs_daddr_t new_blk, last_blk, start_blk; @@ -1419,7 +1419,7 @@ xlog_do_recovery_pass( xlog_rec_header_t *rhead; xfs_daddr_t blk_no; char *offset; - xfs_buf_t *hbp, *dbp; + struct xfs_buf *hbp, *dbp; int error = 0, h_size; int bblks, split_bblks; int hblks, split_hblks, wrapped_hblks; diff --git a/logprint/log_print_all.c b/logprint/log_print_all.c index f32c932992..20f2a44525 100644 --- a/logprint/log_print_all.c +++ b/logprint/log_print_all.c @@ -16,7 +16,7 @@ xlog_print_find_oldest( struct xlog *log, xfs_daddr_t *last_blk) { - xfs_buf_t *bp; + struct xfs_buf *bp; xfs_daddr_t first_blk; uint first_half_cycle, last_half_cycle; int error = 0; diff --git a/mkfs/proto.c b/mkfs/proto.c index 8439efc442..e1cf08d176 100644 --- a/mkfs/proto.c +++ b/mkfs/proto.c @@ -225,7 +225,7 @@ newfile( char *buf, int len) { - xfs_buf_t *bp; + struct xfs_buf *bp; xfs_daddr_t d; int error; int flags; diff --git a/mkfs/xfs_mkfs.c b/mkfs/xfs_mkfs.c index 47acc127c0..0c66255a3f 100644 --- a/mkfs/xfs_mkfs.c +++ b/mkfs/xfs_mkfs.c @@ -3800,7 +3800,7 @@ main( char **argv) { xfs_agnumber_t agno; - xfs_buf_t *buf; + struct xfs_buf *buf; int c; char *dfile = NULL; char *logfile = NULL; diff --git a/repair/agheader.c b/repair/agheader.c index f28d8a7bb0..8bb99489f8 100644 --- a/repair/agheader.c +++ b/repair/agheader.c @@ -467,7 +467,7 @@ secondary_sb_whack( */ int -verify_set_agheader(xfs_mount_t *mp, xfs_buf_t *sbuf, xfs_sb_t *sb, +verify_set_agheader(xfs_mount_t *mp, struct xfs_buf *sbuf, xfs_sb_t *sb, xfs_agf_t *agf, xfs_agi_t *agi, xfs_agnumber_t i) { int rval = 0; diff --git a/repair/attr_repair.c b/repair/attr_repair.c index ba39c2b5ed..bc3c2bef7c 100644 --- a/repair/attr_repair.c +++ b/repair/attr_repair.c @@ -388,7 +388,7 @@ rmtval_get(xfs_mount_t *mp, xfs_ino_t ino, blkmap_t *blkmap, xfs_dablk_t blocknum, int valuelen, char* value) { xfs_fsblock_t bno; - xfs_buf_t *bp; + struct xfs_buf *bp; int clearit = 0, i = 0, length = 0, amountdone = 0; int hdrsize = 0; int error; @@ -730,7 +730,7 @@ process_leaf_attr_level(xfs_mount_t *mp, { int repair; xfs_attr_leafblock_t *leaf; - xfs_buf_t *bp; + struct xfs_buf *bp; xfs_ino_t ino; xfs_fsblock_t dev_bno; xfs_dablk_t da_bno; diff --git a/repair/da_util.h b/repair/da_util.h index 90fec00c7a..2e26178c25 100644 --- a/repair/da_util.h +++ b/repair/da_util.h @@ -8,7 +8,7 @@ #define _XR_DA_UTIL_H struct da_level_state { - xfs_buf_t *bp; /* block bp */ + struct xfs_buf *bp; /* block bp */ xfs_dablk_t bno; /* file block number */ xfs_dahash_t hashval; /* last verified hashval */ int index; /* current index in block */ diff --git a/repair/dino_chunks.c b/repair/dino_chunks.c index 0c60ab431e..c87a435d8c 100644 --- a/repair/dino_chunks.c +++ b/repair/dino_chunks.c @@ -30,7 +30,7 @@ check_aginode_block(xfs_mount_t *mp, xfs_dinode_t *dino_p; int i; int cnt = 0; - xfs_buf_t *bp; + struct xfs_buf *bp; int error; /* @@ -597,7 +597,7 @@ process_inode_chunk( { xfs_ino_t parent; ino_tree_node_t *ino_rec; - xfs_buf_t **bplist; + struct xfs_buf **bplist; xfs_dinode_t *dino; int icnt; int status; @@ -644,10 +644,10 @@ process_inode_chunk( ino_rec = first_irec; irec_offset = 0; - bplist = malloc(cluster_count * sizeof(xfs_buf_t *)); + bplist = malloc(cluster_count * sizeof(struct xfs_buf *)); if (bplist == NULL) do_error(_("failed to allocate %zd bytes of memory\n"), - cluster_count * sizeof(xfs_buf_t *)); + cluster_count * sizeof(struct xfs_buf *)); for (bp_index = 0; bp_index < cluster_count; bp_index++) { /* diff --git a/repair/incore.h b/repair/incore.h index 074ca98a39..977e5dd043 100644 --- a/repair/incore.h +++ b/repair/incore.h @@ -599,7 +599,7 @@ typedef struct bm_level_state { /* int level; uint64_t prev_last_key; - xfs_buf_t *bp; + struct xfs_buf *bp; xfs_bmbt_block_t *block; */ } bm_level_state_t; diff --git a/repair/phase5.c b/repair/phase5.c index b97d23809f..fcdf757ccd 100644 --- a/repair/phase5.c +++ b/repair/phase5.c @@ -395,7 +395,7 @@ build_agf_agfl( static void sync_sb(xfs_mount_t *mp) { - xfs_buf_t *bp; + struct xfs_buf *bp; bp = libxfs_getsb(mp); if (!bp) diff --git a/repair/phase6.c b/repair/phase6.c index f69afac90e..14464befa8 100644 --- a/repair/phase6.c +++ b/repair/phase6.c @@ -558,7 +558,7 @@ mk_rbmino(xfs_mount_t *mp) static int fill_rbmino(xfs_mount_t *mp) { - xfs_buf_t *bp; + struct xfs_buf *bp; xfs_trans_t *tp; xfs_inode_t *ip; xfs_rtword_t *bmp; @@ -626,7 +626,7 @@ _("can't access block %" PRIu64 " (fsbno %" PRIu64 ") of realtime bitmap inode % static int fill_rsumino(xfs_mount_t *mp) { - xfs_buf_t *bp; + struct xfs_buf *bp; xfs_trans_t *tp; xfs_inode_t *ip; xfs_suminfo_t *smp; diff --git a/repair/prefetch.c b/repair/prefetch.c index 3e63b8bea4..48affa1869 100644 --- a/repair/prefetch.c +++ b/repair/prefetch.c @@ -34,7 +34,7 @@ static int pf_max_fsbs; static int pf_batch_bytes; static int pf_batch_fsbs; -static void pf_read_inode_dirs(prefetch_args_t *, xfs_buf_t *); +static void pf_read_inode_dirs(prefetch_args_t *, struct xfs_buf *); /* * Buffer priorities for the libxfs cache @@ -271,7 +271,7 @@ pf_scan_lbtree( int isadir, prefetch_args_t *args)) { - xfs_buf_t *bp; + struct xfs_buf *bp; int rc; int error; @@ -399,7 +399,7 @@ pf_read_exinode( static void pf_read_inode_dirs( prefetch_args_t *args, - xfs_buf_t *bp) + struct xfs_buf *bp) { xfs_dinode_t *dino; int icnt = 0; @@ -473,7 +473,7 @@ pf_batch_read( pf_which_t which, void *buf) { - xfs_buf_t *bplist[MAX_BUFS]; + struct xfs_buf *bplist[MAX_BUFS]; unsigned int num; off64_t first_off, last_off, next_off; int len, size; @@ -592,8 +592,8 @@ pf_batch_read( if (len > 0) { /* - * go through the xfs_buf_t list copying from the - * read buffer into the xfs_buf_t's and release them. + * go through the struct xfs_buf list copying from the + * read buffer into the struct xfs_buf's and release them. */ for (i = 0; i < num; i++) { diff --git a/repair/rt.c b/repair/rt.c index d901e75183..793efb8089 100644 --- a/repair/rt.c +++ b/repair/rt.c @@ -163,7 +163,7 @@ process_rtbitmap(xfs_mount_t *mp, int bmbno; int end_bmbno; xfs_fsblock_t bno; - xfs_buf_t *bp; + struct xfs_buf *bp; xfs_rtblock_t extno; int i; int len; @@ -243,7 +243,7 @@ process_rtsummary(xfs_mount_t *mp, blkmap_t *blkmap) { xfs_fsblock_t bno; - xfs_buf_t *bp; + struct xfs_buf *bp; char *bytes; int sumbno; diff --git a/repair/scan.c b/repair/scan.c index 44e794a0ac..2c25af5784 100644 --- a/repair/scan.c +++ b/repair/scan.c @@ -152,7 +152,7 @@ scan_lbtree( uint64_t magic, const struct xfs_buf_ops *ops) { - xfs_buf_t *bp; + struct xfs_buf *bp; int err; int dirty = 0; bool badcrc = false; @@ -2204,7 +2204,7 @@ scan_freelist( xfs_agf_t *agf, struct aghdr_cnts *agcnts) { - xfs_buf_t *agflbuf; + struct xfs_buf *agflbuf; xfs_agnumber_t agno; struct agfl_state state; int error; diff --git a/repair/xfs_repair.c b/repair/xfs_repair.c index 5efc5586bf..724661d848 100644 --- a/repair/xfs_repair.c +++ b/repair/xfs_repair.c @@ -718,7 +718,7 @@ main(int argc, char **argv) xfs_mount_t *temp_mp; xfs_mount_t *mp; xfs_dsb_t *dsb; - xfs_buf_t *sbp; + struct xfs_buf *sbp; xfs_mount_t xfs_m; struct xlog log = {0}; char *msgbuf; |