archive mirror
 help / color / mirror / Atom feed
From: Markus Elfring <>
To: Liao Pingfang <>,
	Chris Mason <>, David Sterba <>,
	Josef Bacik <>,
	Wang Liang <>,
	Xue Zhihong <>,
	Yi Wang <>
Subject: Re: [PATCH v2] btrfs: Remove error messages for failed memory allocations
Date: Thu, 11 Jun 2020 14:00:21 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

> As there is a dump_stack() done on memory allocation
> failures, these messages might as well be deleted instead.

* I imagine that an other wording variant can become clearer
  for the change description.

* I suggest to reconsider the patch subject.

> +++ b/fs/btrfs/check-integrity.c
> @@ -632,7 +632,6 @@  static int btrfsic_process_superblock(struct btrfsic_state *state,
>  	selected_super = kzalloc(sizeof(*selected_super), GFP_NOFS);
>  	if (NULL == selected_super) {
> -		pr_info("btrfsic: error, kmalloc failed!\n");
>  		return -ENOMEM;
>  	}

How do you think about to use the following error handling instead?

	if (!selected_super)
		return -ENOMEM;


  reply	other threads:[~2020-06-11 14:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-11 14:00 [PATCH v2] btrfs: Remove error messages for failed memory allocations Markus Elfring
2020-06-11 14:00 ` Markus Elfring [this message]
2020-06-11 14:19 ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \ \ \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).