]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: factor out a xfs_defer_create_intent helper
authorChristoph Hellwig <hch@lst.de>
Thu, 16 Feb 2023 05:19:58 +0000 (10:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:50:35 +0000 (12:50 +0100)
commitda9868759a2c2e922a7015d0a17e732bf4ff5a20
treef76e4bf43e7dd9cb1a54d4672bdc1e447b9ad864
parent0b256ca5c7194355e33494fc2247afb8ccd3a795
xfs: factor out a xfs_defer_create_intent helper

commit 1f1f295945ab9075054e1b05a7d089d016dcf040 upstream.

Create a helper that encapsulates the whole logic to create a defer
intent.  This reorders some of the work that was done, but none of
that has an affect on the operation as only fields that don't directly
interact are affected.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Chandan Babu R <chandan.babu@oracle.com>
Acked-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/libxfs/xfs_defer.c