[XFS] Use xfs_inode_clean() in more places
Remove open coded checks for the whether the inode is clean and replace them with an inlined function. SGI-PV: 977461 SGI-Modid: xfs-linux-melb:xfs-kern:30503a Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
committed by
Lachlan McIlroy
parent
bad5584332
commit
3354040897
@@ -168,6 +168,14 @@ static inline int xfs_ilog_fext(int w)
|
||||
return (w == XFS_DATA_FORK ? XFS_ILOG_DEXT : XFS_ILOG_AEXT);
|
||||
}
|
||||
|
||||
static inline int xfs_inode_clean(xfs_inode_t *ip)
|
||||
{
|
||||
return (!ip->i_itemp ||
|
||||
!(ip->i_itemp->ili_format.ilf_fields & XFS_ILOG_ALL)) &&
|
||||
!ip->i_update_core;
|
||||
}
|
||||
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
extern void xfs_inode_item_init(struct xfs_inode *, struct xfs_mount *);
|
||||
|
Reference in New Issue
Block a user