linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anand Jain <anand.jain@oracle.com>
To: David Sterba <dsterba@suse.com>, linux-btrfs@vger.kernel.org
Subject: Re: [PATCH] btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space
Date: Fri, 16 Jun 2017 04:44:05 +0800	[thread overview]
Message-ID: <01c6e628-ad5e-90e6-51ab-df4e30340496@oracle.com> (raw)
In-Reply-To: <20170615130725.466-1-dsterba@suse.com>



On 06/15/2017 09:07 PM, David Sterba wrote:
> We don't hold any locks here. Inidirectly called from statfs.

  Reviewed-by: Anand Jain <anand.jain@oracle.com>

> Signed-off-by: David Sterba <dsterba@suse.com>
> ---
>   fs/btrfs/super.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
> index 4f1cdd5058f1..6f2e68b36362 100644
> --- a/fs/btrfs/super.c
> +++ b/fs/btrfs/super.c
> @@ -1927,7 +1927,7 @@ static int btrfs_calc_avail_data_space(struct btrfs_fs_info *fs_info,
>   	}
>   
>   	devices_info = kmalloc_array(nr_devices, sizeof(*devices_info),
> -			       GFP_NOFS);
> +			       GFP_KERNEL);
>   	if (!devices_info)
>   		return -ENOMEM;
>   
> 

      reply	other threads:[~2017-06-15 20:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15 13:07 [PATCH] btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space David Sterba
2017-06-15 20:44 ` Anand Jain [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=01c6e628-ad5e-90e6-51ab-df4e30340496@oracle.com \
    --to=anand.jain@oracle.com \
    --cc=dsterba@suse.com \
    --cc=linux-btrfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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).