ili_flags is only set to zero and asserted to be zero; it serves
no purpose, so remove it.
(it was renamed to ili_lock_flags in the kernel in commit
898621d5,
for some reason userspace had both, with ili_flags ~unused)
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
typedef struct xfs_inode_log_item {
xfs_log_item_t ili_item; /* common portion */
struct xfs_inode *ili_inode; /* inode pointer */
- unsigned short ili_flags; /* misc flags */
unsigned short ili_lock_flags; /* lock flags */
unsigned int ili_fields; /* fields to be logged */
unsigned int ili_last_fields; /* fields when flushed*/
if (ip->i_itemp == NULL)
xfs_inode_item_init(ip, ip->i_mount);
iip = ip->i_itemp;
- ASSERT(iip->ili_flags == 0);
ASSERT(iip->ili_inode != NULL);
ASSERT(iip->ili_lock_flags == 0);
mp = iip->ili_item.li_mountp;
ASSERT(ip != NULL);
- if (!(iip->ili_fields & XFS_ILOG_ALL)) {
- iip->ili_flags = 0; /* reset all flags */
+ if (!(iip->ili_fields & XFS_ILOG_ALL))
goto free;
- }
/*
* Get the buffer containing the on-disk inode.
inode_item_unlock(
xfs_inode_log_item_t *iip)
{
- iip->ili_flags = 0;
xfs_inode_item_put(iip);
}