提交 88cdb714 编写于 作者: C Christoph Hellwig 提交者: Darrick J. Wong

xfs: slightly tweak an assert in xfs_fs_map_blocks

We should never see delalloc blocks for a pNFS layout, write or not.
Adjust the assert to check for that.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: NDarrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
上级 57c49444
...@@ -148,11 +148,11 @@ xfs_fs_map_blocks( ...@@ -148,11 +148,11 @@ xfs_fs_map_blocks(
if (error) if (error)
goto out_unlock; goto out_unlock;
ASSERT(!nimaps || imap.br_startblock != DELAYSTARTBLOCK);
if (write) { if (write) {
enum xfs_prealloc_flags flags = 0; enum xfs_prealloc_flags flags = 0;
ASSERT(imap.br_startblock != DELAYSTARTBLOCK);
if (!nimaps || imap.br_startblock == HOLESTARTBLOCK) { if (!nimaps || imap.br_startblock == HOLESTARTBLOCK) {
/* /*
* xfs_iomap_write_direct() expects to take ownership of * xfs_iomap_write_direct() expects to take ownership of
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册