OSDN Git Service

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)
commitbba7b1644a25809c299684a325e766263ad15c62
treeb4724a78e2a806554d15238af14a8cd0869f85a4
parent9329ba89cbb1f261decfedfd83e67d89d9d6c591
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