aboutsummaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_defer.c
diff options
context:
space:
mode:
authorGravatar Darrick J. Wong <djwong@kernel.org> 2023-11-30 10:27:10 -0800
committerGravatar Darrick J. Wong <djwong@kernel.org> 2023-12-06 18:45:15 -0800
commit172538beba82e7b65d3d7c84cb558f287381cd7a (patch)
tree0ca6dc765e90313b9ca8810cfe6e12146072b81c /fs/xfs/libxfs/xfs_defer.c
parentxfs: move ->iop_recover to xfs_defer_op_type (diff)
downloadlinux-172538beba82e7b65d3d7c84cb558f287381cd7a.tar.gz
linux-172538beba82e7b65d3d7c84cb558f287381cd7a.tar.bz2
linux-172538beba82e7b65d3d7c84cb558f287381cd7a.zip
xfs: don't set XFS_TRANS_HAS_INTENT_DONE when there's no ATTRD log item
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: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/libxfs/xfs_defer.c')
0 files changed, 0 insertions, 0 deletions