xfs
[Top] [All Lists]

Re: [PATCH 9/9] Clean up open coded inode dirty checks

To: David Chinner <dgc@xxxxxxx>
Subject: Re: [PATCH 9/9] Clean up open coded inode dirty checks
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Fri, 23 Nov 2007 18:02:39 +0000
Cc: xfs-oss <xfs@xxxxxxxxxxx>, lkml <linux-kernel@xxxxxxxxxxxxxxx>
In-reply-to: <20071122004422.GO114266761@xxxxxxx>
References: <20071122004422.GO114266761@xxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.3i
> +STATIC_INLINE int xfs_inode_clean(xfs_inode_t *ip)
> +{
> +     return (((ip->i_itemp == NULL) ||
> +             !(ip->i_itemp->ili_format.ilf_fields & XFS_ILOG_ALL)) &&
> +             (ip->i_update_core == 0));
> +}

Can we please get rid of this useless STATIC_INLINE junk?  It's really
hurting my eyes.  As does to a lesser extent the verbose style of this
function.  This should be something like:

static inline int xfs_inode_clean(struct xfs_inode *ip)
{
        return (!ip->i_itemp ||
                !(ip->i_itemp->ili_format.ilf_fields & XFS_ILOG_ALL)) &&
               !ip->i_update_core;
}


<Prev in Thread] Current Thread [Next in Thread>