From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4ED96C4338F for ; Mon, 26 Jul 2021 06:57:29 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A109460F37 for ; Mon, 26 Jul 2021 06:57:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org A109460F37 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4GY9j327sTz300Q for ; Mon, 26 Jul 2021 16:57:27 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=SfUiMFNb; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=SfUiMFNb; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=redhat.com (client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=agruenba@redhat.com; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=SfUiMFNb; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=SfUiMFNb; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4GY9hw13HLz2yLf for ; Mon, 26 Jul 2021 16:57:18 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627282633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hoM+40XrUs08/iafF0W5TlGWYGpGG8kF5CcKon7tTtw=; b=SfUiMFNbbUhTF/ECVTsz1dbYUlYG6jpX0pgPYkn2Gsn0bJUKNemSdOACttqEqYLwk3IElb FOBUrLspoqjF6tEzkg02fN0UFrbyIxqInbIBqIwKocNFj5trF9Ndd5KivZ7CmAun0W0LFp v7V8mZxL4yIffzLz0+Gg3/pIfRo+KrI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1627282633; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hoM+40XrUs08/iafF0W5TlGWYGpGG8kF5CcKon7tTtw=; b=SfUiMFNbbUhTF/ECVTsz1dbYUlYG6jpX0pgPYkn2Gsn0bJUKNemSdOACttqEqYLwk3IElb FOBUrLspoqjF6tEzkg02fN0UFrbyIxqInbIBqIwKocNFj5trF9Ndd5KivZ7CmAun0W0LFp v7V8mZxL4yIffzLz0+Gg3/pIfRo+KrI= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-364-tjloAF1rNlmqJFpZqrzBYw-1; Mon, 26 Jul 2021 02:57:11 -0400 X-MC-Unique: tjloAF1rNlmqJFpZqrzBYw-1 Received: by mail-wr1-f69.google.com with SMTP id c5-20020adfed850000b02901537ecbecc6so1129713wro.19 for ; Sun, 25 Jul 2021 23:57:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hoM+40XrUs08/iafF0W5TlGWYGpGG8kF5CcKon7tTtw=; b=YR6Hm5z2te84c2a2/7yltNfRQro0UIxCgmUnZe3dWkOozoL0hPv4N5Iztu4v1Y2X4/ /prmk8abUuyb+iwCAAGQpmNMGDaClOLaeaVxQ++1EYh4gjwkfUObezsP65o99SHcqyxP U0zt1Z8HkkYtSfYtN+9cHJFQlQIuWKa7lvaetesyj35oZC01Z14LBxlUsoBeFNi69uKP YI2wFHmI6Kg3srarPM21dnOaTB7xoot0aD7sQiB3JVpguaGKQ2/NFmbY+MCJcjk/rlDR j3FudaR0SxSagrVkUdaU5nqihqxn8QYcq8rOwjUU329sGbU+l6p8CANRZDFabrXeH/qK rTmA== X-Gm-Message-State: AOAM530IQ7DhCJE2igOC+i7y76xQ26px4j3/DKzxyyQ65hpKKv/iFk4k d/sqIkiI/79TPvea6I/F6uPPxT1dc1/lZkXHj41FbWmMdGFtlyD2FimsxN/gnY/gSRdys8/PWIJ Hy5mr/uiISXX4RlplWuHjQwuw0SdB3NHDnUaI1ZNl X-Received: by 2002:a05:600c:2319:: with SMTP id 25mr9998438wmo.27.1627282629855; Sun, 25 Jul 2021 23:57:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1d7vnal7HJ1PcZ4njvl3+oYt3GMB7C300ETtzmpr8AsBsi2dyhup0b5RU8e3Tw7o3XKPki+Q+cwnpDOXFJvY= X-Received: by 2002:a05:600c:2319:: with SMTP id 25mr9998417wmo.27.1627282629625; Sun, 25 Jul 2021 23:57:09 -0700 (PDT) MIME-Version: 1.0 References: <20210723174131.180813-1-hsiangkao@linux.alibaba.com> <20210725221639.426565-1-agruenba@redhat.com> In-Reply-To: From: Andreas Gruenbacher Date: Mon, 26 Jul 2021 08:56:58 +0200 Message-ID: Subject: Re: [PATCH v7] iomap: make inline data support more flexible To: Matthew Wilcox Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=agruenba@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: linux-erofs@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Linux EROFS file system List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Darrick J . Wong" , Andreas Gruenbacher , LKML , linux-fsdevel , linux-erofs@lists.ozlabs.org, Christoph Hellwig Errors-To: linux-erofs-bounces+linux-erofs=archiver.kernel.org@lists.ozlabs.org Sender: "Linux-erofs" On Mon, Jul 26, 2021 at 5:07 AM Matthew Wilcox wrote: > On Mon, Jul 26, 2021 at 12:16:39AM +0200, Andreas Gruenbacher wrote: > > @@ -247,7 +251,6 @@ iomap_readpage_actor(struct inode *inode, loff_t pos, loff_t length, void *data, > > sector_t sector; > > > > if (iomap->type == IOMAP_INLINE) { > > - WARN_ON_ONCE(pos); > > iomap_read_inline_data(inode, page, iomap); > > return PAGE_SIZE; > > This surely needs to return -EIO if there was an error. Hmm, right. Thanks, Andreas