Commit fd9cbe51 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

xfs: remove the xfs_inode_log_item_t typedef

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarBrian Foster <bfoster@redhat.com>
Reviewed-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
parent c84e8190
...@@ -592,7 +592,7 @@ void ...@@ -592,7 +592,7 @@ void
xfs_iflush_fork( xfs_iflush_fork(
xfs_inode_t *ip, xfs_inode_t *ip,
xfs_dinode_t *dip, xfs_dinode_t *dip,
xfs_inode_log_item_t *iip, struct xfs_inode_log_item *iip,
int whichfork) int whichfork)
{ {
char *cp; char *cp;
......
...@@ -27,7 +27,7 @@ xfs_trans_ijoin( ...@@ -27,7 +27,7 @@ xfs_trans_ijoin(
struct xfs_inode *ip, struct xfs_inode *ip,
uint lock_flags) uint lock_flags)
{ {
xfs_inode_log_item_t *iip; struct xfs_inode_log_item *iip;
ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL)); ASSERT(xfs_isilocked(ip, XFS_ILOCK_EXCL));
if (ip->i_itemp == NULL) if (ip->i_itemp == NULL)
......
...@@ -2602,7 +2602,7 @@ xfs_ifree_cluster( ...@@ -2602,7 +2602,7 @@ xfs_ifree_cluster(
xfs_daddr_t blkno; xfs_daddr_t blkno;
xfs_buf_t *bp; xfs_buf_t *bp;
xfs_inode_t *ip; xfs_inode_t *ip;
xfs_inode_log_item_t *iip; struct xfs_inode_log_item *iip;
struct xfs_log_item *lip; struct xfs_log_item *lip;
struct xfs_perag *pag; struct xfs_perag *pag;
struct xfs_ino_geometry *igeo = M_IGEO(mp); struct xfs_ino_geometry *igeo = M_IGEO(mp);
...@@ -2662,7 +2662,7 @@ xfs_ifree_cluster( ...@@ -2662,7 +2662,7 @@ xfs_ifree_cluster(
*/ */
list_for_each_entry(lip, &bp->b_li_list, li_bio_list) { list_for_each_entry(lip, &bp->b_li_list, li_bio_list) {
if (lip->li_type == XFS_LI_INODE) { if (lip->li_type == XFS_LI_INODE) {
iip = (xfs_inode_log_item_t *)lip; iip = (struct xfs_inode_log_item *)lip;
ASSERT(iip->ili_logged == 1); ASSERT(iip->ili_logged == 1);
lip->li_cb = xfs_istale_done; lip->li_cb = xfs_istale_done;
xfs_trans_ail_copy_lsn(mp->m_ail, xfs_trans_ail_copy_lsn(mp->m_ail,
......
...@@ -780,7 +780,7 @@ xfs_iflush_abort( ...@@ -780,7 +780,7 @@ xfs_iflush_abort(
xfs_inode_t *ip, xfs_inode_t *ip,
bool stale) bool stale)
{ {
xfs_inode_log_item_t *iip = ip->i_itemp; struct xfs_inode_log_item *iip = ip->i_itemp;
if (iip) { if (iip) {
if (test_bit(XFS_LI_IN_AIL, &iip->ili_item.li_flags)) { if (test_bit(XFS_LI_IN_AIL, &iip->ili_item.li_flags)) {
......
...@@ -13,7 +13,7 @@ struct xfs_bmbt_rec; ...@@ -13,7 +13,7 @@ struct xfs_bmbt_rec;
struct xfs_inode; struct xfs_inode;
struct xfs_mount; struct xfs_mount;
typedef struct xfs_inode_log_item { struct xfs_inode_log_item {
struct xfs_log_item ili_item; /* common portion */ struct xfs_log_item ili_item; /* common portion */
struct xfs_inode *ili_inode; /* inode ptr */ struct xfs_inode *ili_inode; /* inode ptr */
xfs_lsn_t ili_flush_lsn; /* lsn at last flush */ xfs_lsn_t ili_flush_lsn; /* lsn at last flush */
...@@ -23,7 +23,7 @@ typedef struct xfs_inode_log_item { ...@@ -23,7 +23,7 @@ typedef struct xfs_inode_log_item {
unsigned int ili_last_fields; /* fields when flushed */ unsigned int ili_last_fields; /* fields when flushed */
unsigned int ili_fields; /* fields to be logged */ unsigned int ili_fields; /* fields to be logged */
unsigned int ili_fsync_fields; /* logged since last fsync */ unsigned int ili_fsync_fields; /* logged since last fsync */
} xfs_inode_log_item_t; };
static inline int xfs_inode_clean(xfs_inode_t *ip) static inline int xfs_inode_clean(xfs_inode_t *ip)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment