linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/10] ext4: clean up ext4_ext_find_extent()
@ 2014-09-01  4:06 Theodore Ts'o
  2014-09-01  4:06 ` [PATCH 01/10] ext4: teach ext4_ext_find_extent() to free path on error Theodore Ts'o
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Theodore Ts'o @ 2014-09-01  4:06 UTC (permalink / raw)
  To: Ext4 Developers List; +Cc: Theodore Ts'o

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(-)

-- 
2.1.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-09-01  4:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-01  4:06 [PATCH 00/10] ext4: clean up ext4_ext_find_extent() Theodore Ts'o
2014-09-01  4:06 ` [PATCH 01/10] ext4: teach ext4_ext_find_extent() to free path on error Theodore Ts'o
2014-09-01  4:06 ` [PATCH 02/10] ext4: collapse ext4_convert_initialized_extents() Theodore Ts'o
2014-09-01  4:06 ` [PATCH 03/10] ext4: drop EXT4_EX_NOFREE_ON_ERR in convert_initialized_extent() Theodore Ts'o
2014-09-01  4:06 ` [PATCH 04/10] ext4: drop EXT4_EX_NOFREE_ON_ERR from rest of extents handling code Theodore Ts'o
2014-09-01  4:06 ` [PATCH 05/10] ext4: call ext4_ext_drop_refs() from ext4_ext_find_extent() Theodore Ts'o
2014-09-01  4:06 ` [PATCH 06/10] ext4: allow a NULL argument to ext4_ext_drop_refs() Theodore Ts'o
2014-09-01  4:06 ` [PATCH 07/10] ext4: teach ext4_ext_find_extent() to realloc path if necessary Theodore Ts'o
2014-09-01  4:06 ` [PATCH 08/10] ext4: reuse path object in ext4_ext_shift_extents() Theodore Ts'o
2014-09-01  4:06 ` [PATCH 09/10] ext4: reuse path object in ext4_move_extents() Theodore Ts'o
2014-09-01  4:06 ` [PATCH 10/10] ext4: rename ext4_ext_find_extent() to ext4_find_extent() Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).