]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: remove the xfs_inode_log_item_t typedef
authorChristoph Hellwig <hch@lst.de>
Mon, 10 Aug 2020 20:32:04 +0000 (16:32 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2020 20:32:04 +0000 (16:32 -0400)
Source kernel commit: fd9cbe51215198ccffa64169c98eae35b0916088

Signed-off-by: Christoph Hellwig <hch@lst.de>
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>
include/xfs_trans.h
libxfs/logitem.c
libxfs/trans.c
libxfs/util.c
libxfs/xfs_inode_fork.c
libxfs/xfs_trans_inode.c

index 16e2a468224ee741b392661181855d9ed6ceaaee..0e7ddee9215eccab7edb330c5e960658153f6207 100644 (file)
@@ -26,14 +26,14 @@ typedef struct xfs_log_item {
 
 #define XFS_LI_DIRTY   3       /* log item dirty in transaction */
 
-typedef struct xfs_inode_log_item {
+struct xfs_inode_log_item {
        xfs_log_item_t          ili_item;               /* common portion */
        struct xfs_inode        *ili_inode;             /* inode pointer */
        unsigned short          ili_lock_flags;         /* lock flags */
        unsigned int            ili_last_fields;        /* fields when flushed*/
        unsigned int            ili_fields;             /* fields to be logged */
        unsigned int            ili_fsync_fields;       /* ignored by userspace */
-} xfs_inode_log_item_t;
+};
 
 typedef struct xfs_buf_log_item {
        xfs_log_item_t          bli_item;       /* common item structure */
index d0819dcbf173c5207df164ca74a1bb84a703b472..165eeb75bed21837f5ab3ed474786888dd747a7c 100644 (file)
@@ -132,10 +132,10 @@ xfs_buf_item_log(
  */
 void
 xfs_inode_item_init(
-       xfs_inode_t             *ip,
-       xfs_mount_t             *mp)
+       xfs_inode_t                     *ip,
+       xfs_mount_t                     *mp)
 {
-       xfs_inode_log_item_t    *iip;
+       struct xfs_inode_log_item       *iip;
 
        ASSERT(ip->i_itemp == NULL);
        iip = ip->i_itemp = kmem_zone_zalloc(xfs_ili_zone, 0);
index ddd07cff575f5635984ad8ec8e75735e946005c6..6e0b1667c3e89fa7c4855a1c15fd55ee567e53b5 100644 (file)
@@ -793,13 +793,13 @@ xfs_inode_item_put(
  */
 static void
 inode_item_done(
-       xfs_inode_log_item_t    *iip)
+       struct xfs_inode_log_item       *iip)
 {
-       xfs_dinode_t            *dip;
-       xfs_inode_t             *ip;
-       xfs_mount_t             *mp;
-       xfs_buf_t               *bp;
-       int                     error;
+       xfs_dinode_t                    *dip;
+       xfs_inode_t                     *ip;
+       xfs_mount_t                     *mp;
+       xfs_buf_t                       *bp;
+       int                             error;
 
        ip = iip->ili_inode;
        mp = iip->ili_item.li_mountp;
@@ -874,7 +874,7 @@ trans_committed(
                if (lip->li_type == XFS_LI_BUF)
                        buf_item_done((xfs_buf_log_item_t *)lip);
                else if (lip->li_type == XFS_LI_INODE)
-                       inode_item_done((xfs_inode_log_item_t *)lip);
+                       inode_item_done((struct xfs_inode_log_item *)lip);
                else {
                        fprintf(stderr, _("%s: unrecognised log item type\n"),
                                progname);
@@ -902,7 +902,7 @@ buf_item_unlock(
 
 static void
 inode_item_unlock(
-       xfs_inode_log_item_t    *iip)
+       struct xfs_inode_log_item       *iip)
 {
        xfs_inode_item_put(iip);
 }
@@ -919,7 +919,7 @@ xfs_trans_free_items(
                if (lip->li_type == XFS_LI_BUF)
                        buf_item_unlock((xfs_buf_log_item_t *)lip);
                else if (lip->li_type == XFS_LI_INODE)
-                       inode_item_unlock((xfs_inode_log_item_t *)lip);
+                       inode_item_unlock((struct xfs_inode_log_item *)lip);
                else {
                        fprintf(stderr, _("%s: unrecognised log item type\n"),
                                progname);
index 914e4ca588ee6399dab0023df6e939cf927f4b98..dc3d050dd2fb98a43b04187efa9e578290b20da4 100644 (file)
@@ -351,11 +351,13 @@ libxfs_ialloc(
  * Originally based on xfs_iflush_int() from xfs_inode.c in the kernel.
  */
 int
-libxfs_iflush_int(xfs_inode_t *ip, xfs_buf_t *bp)
+libxfs_iflush_int(
+       xfs_inode_t                     *ip,
+       xfs_buf_t                       *bp)
 {
-       xfs_inode_log_item_t    *iip;
-       xfs_dinode_t            *dip;
-       xfs_mount_t             *mp;
+       struct xfs_inode_log_item       *iip;
+       xfs_dinode_t                    *dip;
+       xfs_mount_t                     *mp;
 
        ASSERT(ip->i_d.di_format != XFS_DINODE_FMT_BTREE ||
                ip->i_d.di_nextents > ip->i_df.if_ext_max);
index 80ba6c1289d0ab4a9eccdf5d722a5e4ed54ae1d2..5ecfecaf454c5fa34fbb505abe69d72a9bd9740f 100644 (file)
@@ -590,7 +590,7 @@ void
 xfs_iflush_fork(
        xfs_inode_t             *ip,
        xfs_dinode_t            *dip,
-       xfs_inode_log_item_t    *iip,
+       struct xfs_inode_log_item *iip,
        int                     whichfork)
 {
        char                    *cp;
index f53b4c8dfc8bb2e0a09820a20bdab837c853177a..068541256ac2f7e360b2bdd7c1a4c3b82d4793d6 100644 (file)
@@ -24,7 +24,7 @@ xfs_trans_ijoin(
        struct xfs_inode        *ip,
        uint                    lock_flags)
 {
-       xfs_inode_log_item_t    *iip;
+       struct xfs_inode_log_item *iip;
 
        ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
        if (ip->i_itemp == NULL)