]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove the xfs_agfl_t typedef
authorChristoph Hellwig <hch@lst.de>
Fri, 1 May 2020 21:37:08 +0000 (17:37 -0400)
committerEric Sandeen <sandeen@redhat.com>
Fri, 1 May 2020 21:37:08 +0000 (17:37 -0400)
Source kernel commit: 4b97510859b22e0db5edf104096af1132daeea9a

There is just a single user left, so remove it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
copy/xfs_copy.c
copy/xfs_copy.h
db/agfl.c
libxfs/xfs_format.h
repair/phase5.c

index c4f9f34981ca9ab27c5c27afe3fd38f5ef57bf84..72ce3fe79480cbb97d934aeb1a4cd7a3120c18f8 100644 (file)
@@ -454,7 +454,7 @@ read_ag_header(int fd, xfs_agnumber_t agno, wbuf *buf, ag_header_t *ag,
        ASSERT(be32_to_cpu(ag->xfs_agf->agf_magicnum) == XFS_AGF_MAGIC);
        ag->xfs_agi = (xfs_agi_t *) (buf->data + diff + 2 * sectorsize);
        ASSERT(be32_to_cpu(ag->xfs_agi->agi_magicnum) == XFS_AGI_MAGIC);
-       ag->xfs_agfl = (xfs_agfl_t *) (buf->data + diff + 3 * sectorsize);
+       ag->xfs_agfl = (struct xfs_agfl *) (buf->data + diff + 3 * sectorsize);
 }
 
 
index 534b63e56140f52e4b35436cb858b70c380de2ca..0b0ec0ea6d56e41493f18813dbfbaf39a496eb8f 100644 (file)
@@ -21,7 +21,7 @@ typedef struct ag_header  {
        xfs_dsb_t       *xfs_sb;        /* superblock for filesystem or AG */
        xfs_agf_t       *xfs_agf;       /* free space info */
        xfs_agi_t       *xfs_agi;       /* free inode info */
-       xfs_agfl_t      *xfs_agfl;      /* AG freelist */
+       struct xfs_agfl *xfs_agfl;      /* AG freelist */
        char            *residue;
        int             residue_length;
 } ag_header_t;
index 9848493704bba73175cc30e52ee909ff252b4689..45e4d6f9ce303ee9fe1072da14e63dac88cf8acc 100644 (file)
--- a/db/agfl.c
+++ b/db/agfl.c
@@ -34,7 +34,7 @@ const field_t agfl_crc_hfld[] = { {
        { NULL }
 };
 
-#define        OFF(f)  bitize(offsetof(xfs_agfl_t, agfl_ ## f))
+#define        OFF(f)  bitize(offsetof(struct xfs_agfl, agfl_ ## f))
 const field_t  agfl_flds[] = {
        { "bno", FLDT_AGBLOCKNZ, OI(OFF(magicnum)), agfl_bno_size,
          FLD_ARRAY|FLD_COUNT, TYP_DATA },
index c1c69a4c8519435bdc6ce3070974da0222971253..32b1651de9c7a0eb5791646493bdcadd02df1d25 100644 (file)
@@ -783,15 +783,15 @@ typedef struct xfs_agi {
  */
 #define XFS_AGFL_DADDR(mp)     ((xfs_daddr_t)(3 << (mp)->m_sectbb_log))
 #define        XFS_AGFL_BLOCK(mp)      XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp))
-#define        XFS_BUF_TO_AGFL(bp)     ((xfs_agfl_t *)((bp)->b_addr))
+#define        XFS_BUF_TO_AGFL(bp)     ((struct xfs_agfl *)((bp)->b_addr))
 
-typedef struct xfs_agfl {
+struct xfs_agfl {
        __be32          agfl_magicnum;
        __be32          agfl_seqno;
        uuid_t          agfl_uuid;
        __be64          agfl_lsn;
        __be32          agfl_crc;
-} __attribute__((packed)) xfs_agfl_t;
+} __attribute__((packed));
 
 #define XFS_AGFL_CRC_OFF       offsetof(struct xfs_agfl, agfl_crc)
 
index a07dfbf38cf0ecd1f520a9724a99bab9215b12fd..f219c026ffeaedf5a84dc9a121d688aea8c60d86 100644 (file)
@@ -441,7 +441,7 @@ calculate_freespace_cursor(xfs_mount_t *mp, xfs_agnumber_t agno,
         * as they will be *after* accounting for the free space
         * we've used up will need fewer blocks to to represent
         * than we've allocated.  We can use the AGFL to hold
-        * xfs_agfl_size (sector/xfs_agfl_t) blocks but that's it.
+        * xfs_agfl_size (sector/struct xfs_agfl) blocks but that's it.
         * Thus we limit things to xfs_agfl_size/2 for each of the 2 btrees.
         * if the number of extra blocks is more than that,
         * we'll have to be called again.