提交 690a7871 编写于 作者: C Christoph Hellwig 提交者: Dave Chinner

xfs: fix warning in xfs_finish_page_writeback for non-debug builds

blockmask is unused if ASSERTs are disabled.
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 0e51a8e1
......@@ -94,15 +94,14 @@ xfs_finish_page_writeback(
struct bio_vec *bvec,
int error)
{
unsigned int blockmask = (1 << inode->i_blkbits) - 1;
unsigned int end = bvec->bv_offset + bvec->bv_len - 1;
struct buffer_head *head, *bh;
unsigned int off = 0;
ASSERT(bvec->bv_offset < PAGE_SIZE);
ASSERT((bvec->bv_offset & blockmask) == 0);
ASSERT((bvec->bv_offset & ((1 << inode->i_blkbits) - 1)) == 0);
ASSERT(end < PAGE_SIZE);
ASSERT((bvec->bv_len & blockmask) == 0);
ASSERT((bvec->bv_len & ((1 << inode->i_blkbits) - 1)) == 0);
bh = head = page_buffers(bvec->bv_page);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册