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=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no 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 E8474C35646 for ; Fri, 21 Feb 2020 15:49:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B0299206E2 for ; Fri, 21 Feb 2020 15:49:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="OG6Vt12T" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728684AbgBUPt5 (ORCPT ); Fri, 21 Feb 2020 10:49:57 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:47974 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728550AbgBUPt5 (ORCPT ); Fri, 21 Feb 2020 10:49:57 -0500 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=kesqpEYqZt+l8smLjhTzg5ddxFrlWN2gK+jo1J4Pjsk=; b=OG6Vt12TZLIHw2DtPT2K98nI6w eYV/2Af08yjga9Zt5miPxIkI+IcH0XhcM1uM8kGroJdM1lSSz9FX+OkD+D1uVO1zFRBO0+d/iBEHS 1+RCYObjS9f2Wwj91ffDTD7ZIwegIqWcyffO/hXenU4JtwzNCY3aZZNAdtWOVhNqgYMAxBvZlPRan VnWLfWs6x6pMtvgcvqQSGxTw42DTRmMZ5nvy0RWJRqQNmLY2Dfx9d4+wjAV0M3NFa0Im7XACscX5Q relFYlMjaTpu91PonjZ2oLmYM5kIdD0eJHs/WpnuVHVFN2aRYer9LlToXsQsBQU5OvepOoyv87QnI 5rX2cMAA==; Received: from hch by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1j5AYu-0002gz-St; Fri, 21 Feb 2020 15:49:56 +0000 Date: Fri, 21 Feb 2020 07:49:56 -0800 From: Christoph Hellwig To: "Darrick J. Wong" Cc: xfs Subject: Re: [PATCH] xfs: improve error message when we can't allocate memory for xfs_buf Message-ID: <20200221154956.GA9866@infradead.org> References: <20200221154132.GQ9506@magnolia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200221154132.GQ9506@magnolia> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Fri, Feb 21, 2020 at 07:41:32AM -0800, Darrick J. Wong wrote: > From: Darrick J. Wong > > If xfs_buf_get_map can't allocate enough memory for the buffer it's > trying to create, it'll cough up an error about not being able to > allocate "pagesn". That's not particularly helpful (and if we're really > out of memory the message is very spammy) so change the message to tell > us how many pages were actually requested, and ratelimit it too. > > Signed-off-by: Darrick J. Wong Looks good, Reviewed-by: Christoph Hellwig