btrfs: some fixes related to the extent map shrinker
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | btrfs: fix use-after-free on inode when scanning root during em shrinkingfs/ | +1 | 1 reply | |
| 2/3 | btrfs: skip inodes without loaded extent maps when shrinking extent mapsfs/ | +56 | 2 replies | |
| 3/3 | btrfs: do regular iput instead of delayed iput during extent map shrinkingfs/ | +1 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Ivan Shapovalov | Johannes Thumshirn | Qu Wenruo |
|---|---|---|---|
| Series | R-b | ||
| 1/3 | T-b | R-b | |
| 2/3 | T-b | R-b | |
| 3/3 | T-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH 0/3] btrfs: some fixes related to the extent map shrinker
From: Filipe Manana <[email protected]>
A few fixes and improvements for the extent map shrinker. The first is a use-after-free that is likely hard to hit and the other two fixes make things more efficient by avoiding grabbing and dropping (iput) inodes which don't have extent maps loaded as well as eleminating the need to do delayed iputs, as that's not needed anymore.
These are related to a recent report from Ivan Shapovalov where the cleaner kthread was using over 50% of CPU doing a lot of delayed iputs:
https://lore.kernel.org/linux-btrfs/[email protected]/
More details in the change logs.
Filipe Manana (3):
btrfs: fix use-after-free on inode when scanning root during em shrinking
btrfs: skip inodes without loaded extent maps when shrinking extent maps
btrfs: do regular iput instead of delayed iput during extent map shrinking
fs/btrfs/extent_map.c | 82 ++++++++++++++++++++++++++++++------------- 1 file changed, 58 insertions(+), 24 deletions(-)
Signature · 1 line
2.45.2