btrfs: fixes and cleanups around extent maps
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest13 patches 6 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
1 of 13 patches has a Reviewed-by or Acked-by.
| Patch | Anand Jain |
|---|---|
| 1/13 | R-b |
| 2/13 | |
| 3/13 | |
| 4/13 | |
| 5/13 | |
| 6/13 | |
| 7/13 | |
| 8/13 | |
| 9/13 | |
| 10/13 | |
| 11/13 | |
| 12/13 | |
| 13/13 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/13] btrfs: fixes and cleanups around extent maps
From: Filipe Manana <[email protected]>
The following patchset fixes a bug related to dropping extent maps that can make an fsync miss a new extent, does several cleanups and some small performance improvements when dropping and searching for extent maps as well as when flushing delalloc in COW mode. These came out while working on some upcoming changes for fiemap, but since they are really independent, I'm sending them as a separate patchset.
The last patch in the series has a test and results in its changelog.
Filipe Manana (13):
btrfs: fix missed extent on fsync after dropping extent maps
btrfs: move btrfs_drop_extent_cache() to extent_map.c
btrfs: use extent_map_end() at btrfs_drop_extent_map_range()
btrfs: use cond_resched_rwlock_write() during inode eviction
btrfs: move open coded extent map tree deletion out of inode eviction
btrfs: add helper to replace extent map range with a new extent map
btrfs: remove the refcount warning/check at free_extent_map()
btrfs: remove unnecessary extent map initializations
btrfs: assert tree is locked when clearing extent map from logging
btrfs: remove unnecessary NULL pointer checks when searching extent maps
btrfs: remove unnecessary next extent map search
btrfs: avoid pointless extent map tree search when flushing delalloc
btrfs: drop extent map range more efficiently
fs/btrfs/ctree.h | 2 - fs/btrfs/extent_map.c | 343 ++++++++++++++++++++++++++++++++--- fs/btrfs/extent_map.h | 8 + fs/btrfs/file.c | 184 ++----------------- fs/btrfs/free-space-cache.c | 2 +- fs/btrfs/inode.c | 101 +++-------- fs/btrfs/relocation.c | 20 +- fs/btrfs/tests/inode-tests.c | 2 +- 8 files changed, 373 insertions(+), 289 deletions(-)
Signature · 1 line
2.35.1