• Darrick J. Wong's avatar
    xfs: don't set XFS_TRANS_HAS_INTENT_DONE when there's no ATTRD log item · 172538be
    Darrick J. Wong authored
    
    
    XFS_TRANS_HAS_INTENT_DONE is a flag to the CIL that we've added a log
    intent done item to the transaction.  This enables an optimization
    wherein we avoid writing out log intent and log intent done items if
    they would have ended up in the same checkpoint.  This reduces writes to
    the ondisk log and speeds up recovery as a result.
    
    However, callers can use the defer ops machinery to modify xattrs
    without using the log items.  In this situation, there won't be an
    intent done item, so we do not need to set the flag.
    Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    172538be
xfs_attr_item.c 23.8 KB