ext4: clean up ext4_ext_find_extent()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | ext4: teach ext4_ext_find_extent() to free path on errorfs/ fs/ fs/ | +21 | 0 replies | |
| 2/10 | ext4: collapse ext4_convert_initialized_extents()fs/ | +57 | 0 replies | |
| 3/10 | ext4: drop EXT4_EX_NOFREE_ON_ERR in convert_initialized_extent()fs/ | +5 | 0 replies | |
| 4/10 | ext4: drop EXT4_EX_NOFREE_ON_ERR from rest of extents handling codefs/ fs/ fs/ | +60 | 0 replies | |
| 5/10 | ext4: call ext4_ext_drop_refs() from ext4_ext_find_extent()fs/ | +4 | 0 replies | |
| 6/10 | ext4: allow a NULL argument to ext4_ext_drop_refs()fs/ fs/ fs/ +1 more | +29 | 0 replies | |
| 7/10 | ext4: teach ext4_ext_find_extent() to realloc path if necessaryfs/ fs/ | +10 | 0 replies | |
| 8/10 | ext4: reuse path object in ext4_ext_shift_extents()fs/ | +5 | 0 replies | |
| 9/10 | ext4: reuse path object in ext4_move_extents()fs/ | +12 | 0 replies | |
| 10/10 | ext4: rename ext4_ext_find_extent() to ext4_find_extent()fs/ fs/ fs/ +2 more | +27 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/10] ext4: clean up ext4_ext_find_extent()
This patch set fixes a potential memory leak in the error path handling for ext4_fill_fiemap_extents(). More importantly, it makes the code clearer so that easier to understand and audit. The resulting code is also tighter, both in lines of codes and bytes of compiled object code. It also avoids some unnecessarily memory allocation and free operations.
Theodore Ts'o (10):
ext4: teach ext4_ext_find_extent() to free path on error
ext4: collapse ext4_convert_initialized_extents()
ext4: drop EXT4_EX_NOFREE_ON_ERR in convert_initialized_extent()
ext4: drop EXT4_EX_NOFREE_ON_ERR from rest of extents handling code
ext4: call ext4_ext_drop_refs() from ext4_ext_find_extent()
ext4: allow a NULL argument to ext4_ext_drop_refs()
ext4: teach ext4_ext_find_extent() to realloc path if necessary
ext4: reuse path object in ext4_ext_shift_extents()
ext4: reuse path object in ext4_move_extents()
ext4: rename ext4_ext_find_extent() to ext4_find_extent()
fs/ext4/ext4.h | 10 +- fs/ext4/ext4_extents.h | 1 + fs/ext4/extents.c | 360 +++++++++++++++++++++-------------------------- fs/ext4/extents_status.c | 8 +- fs/ext4/migrate.c | 11 +- fs/ext4/move_extent.c | 43 +++--- 6 files changed, 194 insertions(+), 239 deletions(-)
Signature · 1 line
2.1.0