diff --git a/fs/erofs/inode.c b/fs/erofs/inode.c index 17701a1ff8637314b4c0cf21af69796ee74ff830..ff1a0d06b46b8b2e495149c50fbfbf6953cee2aa 100644 --- a/fs/erofs/inode.c +++ b/fs/erofs/inode.c @@ -177,7 +177,7 @@ static void *erofs_read_inode(struct erofs_buf *buf, } if (vi->datalayout == EROFS_INODE_CHUNK_BASED) { - if (!(vi->chunkformat & EROFS_CHUNK_FORMAT_ALL)) { + if (vi->chunkformat & ~EROFS_CHUNK_FORMAT_ALL) { erofs_err(inode->i_sb, "unsupported chunk format %x of nid %llu", vi->chunkformat, vi->nid);