linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Update gfp flags in alloc_workspace
@ 2017-05-31 15:41 David Sterba
  2017-05-31 15:41 ` [PATCH 1/3] btrfs: add memalloc_nofs protections around alloc_workspace callback David Sterba
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: David Sterba @ 2017-05-31 15:41 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

We can cheaply get rid of a few GFP_NOFS, as there are only two contexts,
initializaton (GFP_KERNEL is ok), and potentially a "NOFS", but with
memalloc_nofs it's made safe.

David Sterba (3):
  btrfs: add memalloc_nofs protections around alloc_workspace callback
  btrfs: switch kmallocs to GFP_KERNEL in lzo/zlib alloc_workspace
  btrfs: switch to kvmalloc and GFP_KERNEL in lzo/zlib alloc_workspace

 fs/btrfs/compression.c | 10 ++++++++++
 fs/btrfs/lzo.c         | 16 ++++++++--------
 fs/btrfs/zlib.c        | 10 +++++-----
 3 files changed, 23 insertions(+), 13 deletions(-)

-- 
2.12.0


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

end of thread, other threads:[~2017-06-01 14:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-31 15:41 [PATCH 0/3] Update gfp flags in alloc_workspace David Sterba
2017-05-31 15:41 ` [PATCH 1/3] btrfs: add memalloc_nofs protections around alloc_workspace callback David Sterba
2017-06-01  3:36   ` Anand Jain
2017-05-31 15:41 ` [PATCH 2/3] btrfs: switch kmallocs to GFP_KERNEL in lzo/zlib alloc_workspace David Sterba
2017-06-01  3:36   ` Anand Jain
2017-05-31 15:41 ` [PATCH 3/3] btrfs: switch to kvmalloc and " David Sterba
2017-06-01  3:58   ` Anand Jain
2017-06-01 14:24     ` David Sterba

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