]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor xlog_item_is_intent now that we're done converting
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 6 May 2020 19:07:25 +0000 (12:07 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 8 May 2020 15:50:00 +0000 (08:50 -0700)
commitb5413e9b40eb1e52b3ef5854206c7341d1b6ba34
treeb4724a78e2a806554d15238af14a8cd0869f85a4
parentba85b18d0b44866b8889b432272ff35b8ac59a7f
xfs: refactor xlog_item_is_intent now that we're done converting

Now that we've finished converting all types of log intent items to
provide an ->iop_recover function, we can convert the "is this an intent
item?" predicate to look for a non-null iop_recover pointer.

Move the predicate closer to the functions that use it.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_log_recover.c