Skip to content

Update gfp flags in alloc_workspace

David Sterba linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3btrfs: add memalloc_nofs protections around alloc_workspace callbackfs/btrfs/compression.c+10 -01 reply
2/3btrfs: switch kmallocs to GFP_KERNEL in lzo/zlib alloc_workspacefs/btrfs/lzo.c fs/btrfs/zlib.c+3 -31 reply
3/3btrfs: switch to kvmalloc and GFP_KERNEL in lzo/zlib alloc_workspacefs/btrfs/lzo.c fs/btrfs/zlib.c+10 -102 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchAnand Jain
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Update gfp flags in alloc_workspace

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(-)
Signature · 1 line
2.12.0