diff options
| author | Filipe Manana <[email protected]> | 2022-10-13 10:36:25 +0000 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2022-12-05 17:00:40 +0000 |
| commit | 879b2221983184cd61fe852f90f3c0d6dd647f67 (patch) | |
| tree | e70b812aebcf39d8330ea757e022ac7d86236a77 /fs/btrfs/tree-mod-log.c | |
| parent | btrfs: re-check reclaim condition in reclaim worker (diff) | |
| download | kernel-879b2221983184cd61fe852f90f3c0d6dd647f67.tar.gz kernel-879b2221983184cd61fe852f90f3c0d6dd647f67.zip | |
btrfs: switch GFP_ATOMIC to GFP_NOFS when fixing up low keys
When fixing up the first key of each node above the current level, at
fixup_low_keys(), we are doing a GFP_ATOMIC allocation for inserting an
operation record for the tree mod log. However we can do just fine with
GFP_NOFS nowadays. The need for GFP_ATOMIC was for the old days when we
had custom locks with spinning behaviour for extent buffers and we were
in spinning mode while at fixup_low_keys(). Now we use rw semaphores for
extent buffer locks, so we can safely use GFP_NOFS.
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions
