xfs: split in-core and on-disk inode log item fields
Add a new ili_fields member to the inode log item to isolate the in-memory flags from the ones that actually go to the log. This will allow tracking timestamp-only updates for fdatasync and O_DSYNC in the next patch and prepares for divorcing the on-disk log format from the in-memory log item a little further down the road. Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mark Tinguely <tinguely@sgi.com> Signed-off-by: Ben Myers <bpm@sgi.com>
This commit is contained in:
committed by
Ben Myers
parent
339a5f5dd9
commit
f5d8d5c4bf
@@ -130,12 +130,12 @@ xfs_trans_log_inode(
|
||||
/*
|
||||
* Always OR in the bits from the ili_last_fields field.
|
||||
* This is to coordinate with the xfs_iflush() and xfs_iflush_done()
|
||||
* routines in the eventual clearing of the ilf_fields bits.
|
||||
* routines in the eventual clearing of the ili_fields bits.
|
||||
* See the big comment in xfs_iflush() for an explanation of
|
||||
* this coordination mechanism.
|
||||
*/
|
||||
flags |= ip->i_itemp->ili_last_fields;
|
||||
ip->i_itemp->ili_format.ilf_fields |= flags;
|
||||
ip->i_itemp->ili_fields |= flags;
|
||||
}
|
||||
|
||||
#ifdef XFS_TRANS_DEBUG
|
||||
|
Reference in New Issue
Block a user