Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

xfs: improve the assert at the top of xfs_log_cover

Move each condition into a separate assert so that we can see which
on triggered.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>

authored by

Christoph Hellwig and committed by
Carlos Maiolino
df7ec722 baed03ef

+5 -3
+5 -3
fs/xfs/xfs_log.c
··· 1180 1180 int error = 0; 1181 1181 bool need_covered; 1182 1182 1183 - ASSERT((xlog_cil_empty(mp->m_log) && xlog_iclogs_empty(mp->m_log) && 1184 - !xfs_ail_min_lsn(mp->m_log->l_ailp)) || 1185 - xlog_is_shutdown(mp->m_log)); 1183 + if (!xlog_is_shutdown(mp->m_log)) { 1184 + ASSERT(xlog_cil_empty(mp->m_log)); 1185 + ASSERT(xlog_iclogs_empty(mp->m_log)); 1186 + ASSERT(!xfs_ail_min_lsn(mp->m_log->l_ailp)); 1187 + } 1186 1188 1187 1189 if (!xfs_log_writable(mp)) 1188 1190 return 0;