]> 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)
commit9f2f7bfbbd5bd72c32e678d590c65f48a48e97e1
treeb4724a78e2a806554d15238af14a8cd0869f85a4
parent84df1dcd357166c96023bee1996b1419ee083ab6
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