Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp310038ybz; Fri, 24 Apr 2020 16:41:34 -0700 (PDT) X-Google-Smtp-Source: APiQypIHyY6J5+oI/lHDFwgT9tkmZVRXm73pW4AAvFcYKAsh1/gZkslcr2h745itneXldo1m8dzt X-Received: by 2002:a17:906:38c:: with SMTP id b12mr9327693eja.332.1587771694627; Fri, 24 Apr 2020 16:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587771694; cv=none; d=google.com; s=arc-20160816; b=B6ELCYZdrWUOJNN7yXwlgnrJ6gJGqQf6UAeyuEDSfl7hH2+M8Y32thgpC4MZqRNZRg 84VcSG1EbmiNZKfh8nyOtyxl/89/vW1SvxcnNhI4iUKj50qAfYlnq+8Q9loX1ahvsqhf 7wTAZ/QF0l7/FQ+51taXuq1sSHsUTvxqQOPKstoJl663XUpblCU7i4zoeXFshQx5Jgmn /YMCozcy1eyXAdWL21M1cBXuSGeAKLnMhT4erb3/RIyQInqd543bSU/v2TdYIUzh1o4g qWxssXo5RF0GqDuUN1/J7xyBb5celhSBeZcwfI60reG2GaQtYcaN3XcaHZ6zDi/15nI4 VyKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=WxK8Rb0X2k+JQt/gEfPjjJEwVKjrTPs7QnwkljElXIk=; b=Pvkyb+W7/z8I39cEkOHWiWPBXML5EOifXDQSCRyhHAnm7QfCwDhjoxJwNqeMl78A32 DdjLq8VDy1GNzkpDcnoo1+pFBqthG6WBDu06WUKe7RZa6AZFlQoejxfPDAiGqSiyB5EC 6I4d7FvtlIkGz8Zzf2jChOdS0tj7VwsowOKH8UcljwirPncqWRay0Dbwj6jnSsJpWJMV 9vrdbcmulubZSOUsFzPg2V5ZL0QoZ3qsrfiW7r2BA+r8NG+MAEZ67QjSLJefzByx4HPJ 3Gj89pFgwIq2Dveml2flBDk5CzfDyTEVgwTx/z2CAmL2qL3b1H3bMpeArp0dsKVnJO0Q px7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LXhSKDmK; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c13si4265091edq.97.2020.04.24.16.41.04; Fri, 24 Apr 2020 16:41:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=LXhSKDmK; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725946AbgDXXlB (ORCPT + 99 others); Fri, 24 Apr 2020 19:41:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725874AbgDXXlA (ORCPT ); Fri, 24 Apr 2020 19:41:00 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C311CC09B049; Fri, 24 Apr 2020 16:41:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WxK8Rb0X2k+JQt/gEfPjjJEwVKjrTPs7QnwkljElXIk=; b=LXhSKDmKbYZ9Av9HB4KZYhMCIS 1hFh8iQi+Jo4TcNrwTPQAjVmdTKyQ0xcoJ2vLnb1IL/zrkY3WB48c3OF2R3yvGUBP5pswlKeKUOOX iWi+UbJ2rumi0PNQI6WaBJU/qCWF+0csDIf9U1yuJn3cYvmjRbeDUJs7+IIGS37fmIw92IqyLQ8Qs 2CN4sVNcKs2k2mLe3rq7fLy5+OmD80RVXkctoFO+eJC3RzFL9oCZ/2pEDqq4F3WS6zqVab8zqs3RY xCu2x13ZJVRQCW68xwGK3aQhrvCeAPodGTrnvxfKo0BPmkIkMVb9UwuwMQvOk+ouoGinwvL4WlpbR E4AnfuTw==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jS7wI-0005hv-Sh; Fri, 24 Apr 2020 23:40:58 +0000 Date: Fri, 24 Apr 2020 16:40:58 -0700 From: Matthew Wilcox To: Ritesh Harjani Cc: Eric Biggers , linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, Alexander Viro , "Darrick J . Wong" , Christoph Hellwig , Jan Kara , tytso@mit.edu, "Aneesh Kumar K . V" , linux-ext4@vger.kernel.org Subject: Re: [PATCH 1/2] fibmap: Warn and return an error in case of block > INT_MAX Message-ID: <20200424234058.GA29705@bombadil.infradead.org> References: <20200424191739.GA217280@gmail.com> <20200424225425.6521D4C040@d06av22.portsmouth.uk.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200424225425.6521D4C040@d06av22.portsmouth.uk.ibm.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, Apr 25, 2020 at 04:24:24AM +0530, Ritesh Harjani wrote: > Ok, I see. > Let me replace WARN() with below pr_warn() line then. If no objections, > then will send this in a v2 with both patches combined as Darrick > suggested. - (with Reviewed-by tags of Jan & Christoph). > > pr_warn("fibmap: this would truncate fibmap result\n"); We generally don't like userspace to be able to trigger kernel messages on demand, so they can't swamp the logfiles. printk_ratelimited()?