]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: remove unused argument in trans_iput
authorMark Tinguely <tinguely@sgi.com>
Tue, 20 May 2014 08:30:01 +0000 (18:30 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 20 May 2014 08:30:01 +0000 (18:30 +1000)
Remove the unused second argument to xfs_iput() and
xfs_trans_iput().

Introduce the define "IRELE()" and use in place of xfs_iput().

Signed-off-by: Mark Tinguely <tinguely@sgi.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
db/attrset.c
include/libxfs.h
libxfs/init.c
libxfs/rdwr.c
libxfs/trans.c
mkfs/proto.c
repair/phase6.c
repair/phase7.c

index 762b3bf3cef6ae004be4f2dd376e488aea691260..ea5261a1bbbe67f6a63fb876e585723f166ba4c9 100644 (file)
@@ -170,7 +170,7 @@ attr_set_f(
 out:
        mp->m_flags &= ~LIBXFS_MOUNT_COMPAT_ATTR;
        if (ip)
-               libxfs_iput(ip, 0);
+               IRELE(ip);
        if (value)
                free(value);
        return 0;
@@ -244,6 +244,6 @@ attr_remove_f(
 out:
        mp->m_flags &= ~LIBXFS_MOUNT_COMPAT_ATTR;
        if (ip)
-               libxfs_iput(ip, 0);
+               IRELE(ip);
        return 0;
 }
index 9c1095758220aabfda09c804aa8d621d9c2468b9..f97ab65875d3e150f86cf2f5c03d128dfbf82b56 100644 (file)
@@ -535,7 +535,7 @@ extern xfs_buf_t    *libxfs_trans_getsb (xfs_trans_t *, xfs_mount_t *, int);
 
 extern int     libxfs_trans_iget (xfs_mount_t *, xfs_trans_t *, xfs_ino_t,
                                uint, uint, struct xfs_inode **);
-extern void    libxfs_trans_iput(xfs_trans_t *, struct xfs_inode *, uint);
+extern void    libxfs_trans_iput(xfs_trans_t *, struct xfs_inode *);
 extern void    libxfs_trans_ijoin (xfs_trans_t *, struct xfs_inode *, uint);
 extern void    libxfs_trans_ihold (xfs_trans_t *, struct xfs_inode *);
 extern void    libxfs_trans_ijoin_ref(xfs_trans_t *, struct xfs_inode *, int);
@@ -656,7 +656,9 @@ extern int  libxfs_iflush_int (xfs_inode_t *, xfs_buf_t *);
 /* Inode Cache Interfaces */
 extern int     libxfs_iget (xfs_mount_t *, xfs_trans_t *, xfs_ino_t,
                                uint, xfs_inode_t **, xfs_daddr_t);
-extern void    libxfs_iput (xfs_inode_t *, uint);
+extern void    libxfs_iput (xfs_inode_t *);
+
+#define IRELE(ip) libxfs_iput(ip)
 
 /* Shared utility routines */
 extern unsigned int    libxfs_log2_roundup(unsigned int i);
index 09249485b4900bbc7d7bb02d7dffc3dd82765123..06458e5e49d7ba2c4caced8c81220d9ca8f8d5b3 100644 (file)
@@ -778,9 +778,9 @@ void
 libxfs_rtmount_destroy(xfs_mount_t *mp)
 {
        if (mp->m_rsumip)
-               libxfs_iput(mp->m_rsumip, 0);
+               IRELE(mp->m_rsumip);
        if (mp->m_rbmip)
-               libxfs_iput(mp->m_rbmip, 0);
+               IRELE(mp->m_rbmip);
        mp->m_rsumip = mp->m_rbmip = NULL;
 }
 
index 57c12c1d4c9ba4cdb3f1c78f6330f32e59bef108..981f2ba524cbada862edc3c793ab6d8a23b5d9f8 100644 (file)
@@ -1103,7 +1103,7 @@ libxfs_idestroy(xfs_inode_t *ip)
 }
 
 void
-libxfs_iput(xfs_inode_t *ip, uint lock_flags)
+libxfs_iput(xfs_inode_t *ip)
 {
        if (ip->i_itemp)
                kmem_zone_free(xfs_ili_zone, ip->i_itemp);
index c44386337db59e74ca523a7d2f9a798a9fd9427e..49af4d187f32fb5da30c01501c83c221434bbc4b 100644 (file)
@@ -250,13 +250,12 @@ libxfs_trans_iget(
 void
 libxfs_trans_iput(
        xfs_trans_t             *tp,
-       xfs_inode_t             *ip,
-       uint                    lock_flags)
+       xfs_inode_t             *ip)
 {
        xfs_inode_log_item_t    *iip;
 
        if (tp == NULL) {
-               libxfs_iput(ip, lock_flags);
+               IRELE(ip);
                return;
        }
 
@@ -265,7 +264,7 @@ libxfs_trans_iput(
        ASSERT(iip != NULL);
        xfs_trans_del_item(&iip->ili_item);
 
-       libxfs_iput(ip, lock_flags);
+       IRELE(ip);
 }
 
 void
@@ -737,7 +736,7 @@ ili_done:
                return;
        }
        /* free the inode */
-       libxfs_iput(ip, 0);
+       IRELE(ip);
 }
 
 static void
@@ -819,7 +818,7 @@ inode_item_unlock(
 
        iip->ili_flags = 0;
        if (!iip->ili_lock_flags)
-               libxfs_iput(ip, 0);
+               IRELE(ip);
        else
                iip->ili_lock_flags = 0;
 }
index 5a47e27c0236c116d6314ba92bdf01841e8da862..5b68b23d07918ce470f84915fde9a1a3c131d645 100644 (file)
@@ -590,7 +590,7 @@ parseproto(
                                break;
                        parseproto(mp, ip, fsxp, pp, name);
                }
-               libxfs_iput(ip, 0);
+               IRELE(ip);
                return;
        default:
                ASSERT(0);
index 5ae6a3d26a65fc9d1300f3b9d561b45d31cd7587..0c8a0ba1e4951eb0b9f6c1c076f5e75a70406eae 100644 (file)
@@ -2929,7 +2929,7 @@ process_dir_inode(
                                        |XFS_TRANS_SYNC);
                }
        }
-       libxfs_iput(ip, 0);
+       IRELE(ip);
 }
 
 /*
index 18f2d8800d6e57581239461db7aa665930aa2cd6..26446d3d86cceeb1a1e6f412c3b47785277b6f73 100644 (file)
@@ -99,7 +99,7 @@ update_inode_nlinks(
        set_nlinks(&ip->i_d, ino, nlinks, &dirty);
 
        if (!dirty)  {
-               libxfs_trans_iput(tp, ip, 0);
+               libxfs_trans_iput(tp, ip);
                libxfs_trans_cancel(tp, XFS_TRANS_RELEASE_LOG_RES);
        } else  {
                libxfs_trans_log_inode(tp, ip, XFS_ILOG_CORE);