diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-11-30 10:58:37 -0800 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2023-12-06 18:45:16 -0800 |
commit | f3fd7f6fce1cc9b8eb59705b27f823330207b7c9 (patch) | |
tree | dc60472d1f19e200c67b5e562952fec72008bfd6 /fs/xfs/xfs_extfree_item.c | |
parent | e6e5299fcbf0b18cad45cd58f99787549c790857 (diff) | |
download | lwn-f3fd7f6fce1cc9b8eb59705b27f823330207b7c9.tar.gz lwn-f3fd7f6fce1cc9b8eb59705b27f823330207b7c9.zip |
xfs: hoist ->create_intent boilerplate to its callsite
Hoist the dirty flag setting code out of each ->create_intent
implementation up to the callsite to reduce boilerplate further.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_extfree_item.c')
-rw-r--r-- | fs/xfs/xfs_extfree_item.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/xfs/xfs_extfree_item.c b/fs/xfs/xfs_extfree_item.c index 581a70acd1ac..d07cdc3eb809 100644 --- a/fs/xfs/xfs_extfree_item.c +++ b/fs/xfs/xfs_extfree_item.c @@ -390,9 +390,6 @@ xfs_extent_free_log_item( uint next_extent; struct xfs_extent *extp; - tp->t_flags |= XFS_TRANS_DIRTY; - set_bit(XFS_LI_DIRTY, &efip->efi_item.li_flags); - /* * atomic_inc_return gives us the value after the increment; * we want to use it as an array index so we need to subtract 1 from |