Skip to content

btrfs: drop no longer needed atomic allocation for tree mod log operations

[email protected] linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: switch GFP_ATOMIC to GFP_NOFS when fixing up low keysfs/btrfs/ctree.c+1 -10 replies
2/2btrfs: remove gfp_t flag from btrfs_tree_mod_log_insert_key()fs/btrfs/ctree.c fs/btrfs/tree-mod-log.c fs/btrfs/tree-mod-log.h+18 -190 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] btrfs: drop no longer needed atomic allocation for tree mod log operations

From: Filipe Manana <[email protected]>

We are still doing an atomic memory allocation for tree mod log operations which is not needed anymore after we switch extent buffer locks to rw semaphores. This replaces that atomic allocation with a GFP_NOFS one, and then removes redundant gfp_t argument for btrfs_tree_mod_log_insert_key().

V2: Updated patch 2/2 to also remove the allocation flag from

    alloc_tree_mod_elem().

Filipe Manana (2):
btrfs: switch GFP_ATOMIC to GFP_NOFS when fixing up low keys
btrfs: remove gfp_t flag from btrfs_tree_mod_log_insert_key()

 fs/btrfs/ctree.c        | 16 ++++++++--------
 fs/btrfs/tree-mod-log.c | 19 +++++++++----------
 fs/btrfs/tree-mod-log.h |  2 +-
 3 files changed, 18 insertions(+), 19 deletions(-)
Signature · 1 line
2.35.1