]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: use bitops interface for buf log item AIL flag check
authorBrian Foster <bfoster@redhat.com>
Tue, 17 Dec 2019 21:50:26 +0000 (13:50 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 19 Dec 2019 15:53:47 +0000 (07:53 -0800)
commit419552467bcc5dfd0c5d0f740af3877019597946
tree0e347c71c3ef90670aadaee13258925351adc266
parente2533ca70f2d3ef956e61d29dce453b3ae250117
xfs: use bitops interface for buf log item AIL flag check

The xfs_log_item flags were converted to atomic bitops as of commit
193c535844 ("xfs: log item flags are racy"). The assert check for
AIL presence in xfs_buf_item_relse() still uses the old value based
check. This likely went unnoticed as XFS_LI_IN_AIL evaluates to 0
and causes the assert to unconditionally pass. Fix up the check.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Fixes: 193c535844 ("xfs: log item flags are racy")
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_buf_item.c