Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5187270rwb; Tue, 8 Aug 2023 23:18:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwagbC+q45OEzlRZ40LSNNXqawHIifgqEvqIcu+n/UM7FJLHgZORu+7xN13xnYwWanY8wK X-Received: by 2002:a17:906:32c3:b0:992:6064:f32b with SMTP id k3-20020a17090632c300b009926064f32bmr1260874ejk.46.1691561886134; Tue, 08 Aug 2023 23:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691561886; cv=none; d=google.com; s=arc-20160816; b=wbydIDAoHaqLsQGB88qRpAyLlNaM9/u53pjAMU3omJT67KEO7e+1yxhecAYjItHKgT F79oq4AJISb10itT5c9bfnWM2VENSM5mJu5hJvAJATkvrDqPCHTWWFPxxQjV0vPLap5F +7VPGxmmrHXlh/rblOtnZZpbFjk3OxVdSoAdIT32zxf/ogJLbKQHkqtepfkMR3t8ozp8 U7O7IT3z7MxjppbYyChcj9xBWi1Tvf5hGF9i0sCmZa7007OsGqBaSX5PEvM4XbritCIL IGkTk0dtYLyD5+xfZaWGaI3RjHft6tnuugWeuWSWu30+oLQAoxrL0iuNtCpn8VZ6m12b ziDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=bIytNtXNV2S4Iub1PLQwxC3d/ZfddzyiisjmmFvNNJ8=; fh=iJ7xRlwy7lJ0xL4Q+T9gyACQci1WjdoFCmE3eTIw118=; b=CaB45oUFYKvg+xCRydZ33JPzWUo6ZKybOe9H2EmByTAB2bcEWF46qSjTIajc+wyx3x HUDPje8dv04CPHeEPVEXvK0bUIInmL7ynHw3oJ1PVNTtVxEP5RCQU6F2M1rI4gs/jH7y LX7qhpaw4MEasoWOS+CLrhBC+amYNAdRa3FS3+o96ELUa/q/GAGsKw0Gpz3K4e/ye0AJ 3ntUd2a3N34RcBVZVWMSlc4hhnpNMxjBgCTO4idFpIyg7f5yUfsaNiEHQ14czsMeKHwv fmwsqcbPDj0UCGe0sowh/F44bl5Y9XhQMyNWWr1KnQy7UeSl5N0m4JmDCSHKo70TqaSK 5Jjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u24-20020a056402065800b005234dee720dsi1096021edx.226.2023.08.08.23.17.41; Tue, 08 Aug 2023 23:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230382AbjHIGGu (ORCPT + 99 others); Wed, 9 Aug 2023 02:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229535AbjHIGGt (ORCPT ); Wed, 9 Aug 2023 02:06:49 -0400 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 202E1A0 for ; Tue, 8 Aug 2023 23:06:47 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R591e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=mengferry@linux.alibaba.com;NM=1;PH=DS;RN=3;SR=0;TI=SMTPD_---0VpNfuZA_1691561198; Received: from j66c13357.sqa.eu95.tbsite.net(mailfrom:mengferry@linux.alibaba.com fp:SMTPD_---0VpNfuZA_1691561198) by smtp.aliyun-inc.com; Wed, 09 Aug 2023 14:06:43 +0800 From: Ferry Meng To: linux-erofs@lists.ozlabs.org Cc: LKML , Ferry Meng Subject: [PATCH] erofs: refine warning messages for data I/Os Date: Wed, 9 Aug 2023 14:06:37 +0800 Message-Id: <20230809060637.21311-1-mengferry@linux.alibaba.com> X-Mailer: git-send-email 2.19.1.6.gb485710b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Don't warn users since -EINTR is returned due to user interruption. Also suppress warning messages of readmore. Signed-off-by: Ferry Meng --- fs/erofs/zdata.c | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c index de4f12152b62..53820271e538 100644 --- a/fs/erofs/zdata.c +++ b/fs/erofs/zdata.c @@ -1848,15 +1848,10 @@ static void z_erofs_pcluster_readmore(struct z_erofs_decompress_frontend *f, page = erofs_grab_cache_page_nowait(inode->i_mapping, index); if (page) { - if (PageUptodate(page)) { + if (PageUptodate(page)) unlock_page(page); - } else { - err = z_erofs_do_read_page(f, page); - if (err) - erofs_err(inode->i_sb, - "readmore error at page %lu @ nid %llu", - index, EROFS_I(inode)->nid); - } + else + (void)z_erofs_do_read_page(f, page); put_page(page); } @@ -1885,8 +1880,9 @@ static int z_erofs_read_folio(struct file *file, struct folio *folio) /* if some compressed cluster ready, need submit them anyway */ z_erofs_runqueue(&f, z_erofs_is_sync_decompress(sbi, 0), false); - if (err) - erofs_err(inode->i_sb, "failed to read, err [%d]", err); + if (err && err != -EINTR) + erofs_err(inode->i_sb, "read error %d @ %lu of nid %llu", + err, folio->index, EROFS_I(inode)->nid); erofs_put_metabuf(&f.map.buf); erofs_release_pages(&f.pagepool); @@ -1920,10 +1916,9 @@ static void z_erofs_readahead(struct readahead_control *rac) head = (void *)page_private(page); err = z_erofs_do_read_page(&f, page); - if (err) - erofs_err(inode->i_sb, - "readahead error at page %lu @ nid %llu", - page->index, EROFS_I(inode)->nid); + if (err && err != -EINTR) + erofs_err(inode->i_sb, "readahead error %d @ %lu of nid %llu", + err, page->index, EROFS_I(inode)->nid); put_page(page); } z_erofs_pcluster_readmore(&f, rac, false); -- 2.19.1.6.gb485710b