linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space
@ 2017-06-15 13:07 David Sterba
  2017-06-15 20:44 ` Anand Jain
  0 siblings, 1 reply; 2+ messages in thread
From: David Sterba @ 2017-06-15 13:07 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

We don't hold any locks here. Inidirectly called from statfs.

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;
 
-- 
2.13.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs: use GFP_KERNEL in btrfs_calc_avail_data_space
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Anand Jain @ 2017-06-15 20:44 UTC (permalink / raw)
  To: David Sterba, linux-btrfs



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;
>   
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-15 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).