out:
mp->m_flags &= ~LIBXFS_MOUNT_COMPAT_ATTR;
if (ip)
- libxfs_iput(ip, 0);
+ IRELE(ip);
if (value)
free(value);
return 0;
out:
mp->m_flags &= ~LIBXFS_MOUNT_COMPAT_ATTR;
if (ip)
- libxfs_iput(ip, 0);
+ IRELE(ip);
return 0;
}
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);
/* 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);
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;
}
}
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);
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;
}
ASSERT(iip != NULL);
xfs_trans_del_item(&iip->ili_item);
- libxfs_iput(ip, lock_flags);
+ IRELE(ip);
}
void
return;
}
/* free the inode */
- libxfs_iput(ip, 0);
+ IRELE(ip);
}
static void
iip->ili_flags = 0;
if (!iip->ili_lock_flags)
- libxfs_iput(ip, 0);
+ IRELE(ip);
else
iip->ili_lock_flags = 0;
}
break;
parseproto(mp, ip, fsxp, pp, name);
}
- libxfs_iput(ip, 0);
+ IRELE(ip);
return;
default:
ASSERT(0);
|XFS_TRANS_SYNC);
}
}
- libxfs_iput(ip, 0);
+ IRELE(ip);
}
/*
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);